J
Joshua Beall
Hi All,
The W3C's validator seems to return "character data not allowed here" for
HTML documents when you have a tag in <head> section that has no end tag,
and you put "/>" to close that tag. E.g., <meta http-equiv="Content-Type"
content="text/html;charset=iso-8859-1"/>
Here's an example page (ibm.com):
http://validator.w3.org/check?uri=http://jbeall.com/pages/dev/test.htm
The exact same document, only with the "/>" changed to ">" in the <head>
section
http://validator.w3.org/check?uri=h...automatically)&doctype=(detect+automatically)
Why is this? I knew that the "/>" for tags that do not have an end tag was
not *required* in HTML4, but I did not know it was *disallowed*?
Furthermore, why is it complaining about "character data"? There is no
character data, is there?
-Josh
The W3C's validator seems to return "character data not allowed here" for
HTML documents when you have a tag in <head> section that has no end tag,
and you put "/>" to close that tag. E.g., <meta http-equiv="Content-Type"
content="text/html;charset=iso-8859-1"/>
Here's an example page (ibm.com):
http://validator.w3.org/check?uri=http://jbeall.com/pages/dev/test.htm
The exact same document, only with the "/>" changed to ">" in the <head>
section
http://validator.w3.org/check?uri=h...automatically)&doctype=(detect+automatically)
Why is this? I knew that the "/>" for tags that do not have an end tag was
not *required* in HTML4, but I did not know it was *disallowed*?
Furthermore, why is it complaining about "character data"? There is no
character data, is there?
-Josh