J
Jim Higson
I just noticed that not separating attributes by spaces is picked up by some
validators/checkers and not others.
For example, this code:
<a title="a link"href="http://example.com">this is a link</a>
Flags no errors with the W3C checker, but the one at
http://www.htmlvalidator.com/lite/ says "A quoted string (like an attribute
value) cannot be immediately followed by text. It must be followed by a
space or by the end of the tag. Is there a missing space character?"
This is in an XHTML document (although I'd be interested to see what the
rules are for HTML 4 as well). Is anyone familiar enough with the SGML
specification of XML to say if the example I gave is valid XML?
No real point to this, just wondering which validator gets it right.
validators/checkers and not others.
For example, this code:
<a title="a link"href="http://example.com">this is a link</a>
Flags no errors with the W3C checker, but the one at
http://www.htmlvalidator.com/lite/ says "A quoted string (like an attribute
value) cannot be immediately followed by text. It must be followed by a
space or by the end of the tag. Is there a missing space character?"
This is in an XHTML document (although I'd be interested to see what the
rules are for HTML 4 as well). Is anyone familiar enough with the SGML
specification of XML to say if the example I gave is valid XML?
No real point to this, just wondering which validator gets it right.