You are here: Re: Why is here no wc3 validation error? « HTML « IT news, forums, messages
Re: Why is here no wc3 validation error?

Posted by John Hosking on 06/02/07 15:48

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

 

Navigation:

[Reply to this 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

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