Re: Why is here no wc3 validation error?



Knut Krueger wrote:
Hi all,
why is the code reported as valid?
IE and Opera will display nothing without the > after the link

I don't know. Maybe Jukka or Ben or somebody experienced in reading DTDs can explain why it's allowed.

I pasted your code into the "Validate by Direct Input" box at http://validator.w3.org/ and found that the code is indeed deemed to be valid. Also valid is this simpler variant:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>
<html>
<head>
<title>More of a Parse Question</title>
</head>
<body>
<p>
<A </A>
</p>
</body>
</html>

I can only guess that this is an instance of one of those little-known auto-terminating tags (although it doesn't seem to be a proper "null end tag") that seem to work because they are rooted in SGML, but which nobody (like, say, browser developers) knows about.

Sorry I can't be of more help. I'm interested in knowing the answer, too.

--
John
.