Reply to Re: Is this valid code?

Your name:

Reply:


Posted by Andy Dingley on 06/12/06 13:30

Jim Higson wrote:
> I just noticed that not separating attributes by spaces is picked up by some
> validators/checkers and not others.

"Any number of (legal) attribute value pairs, separated by spaces, may
appear in an element's start tag."
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
So you do need the spaces in HTML (inc Appendix C XHTML).

The production for attributes in XML
http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-starttags
also requires spaces, so you require them in XML, including XHTML as
application/xhtml+xml.

I offer no explanation of the W3C's parser not reporting the
well-formedness error. I don't think this is some SGML subtlety (which
would be forbidden by ther text of the HTML TR anyway). It's probably
another manifestation of the less than perfect nature of the W3C
validator when used on XML-as-XML.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация