W3C home > Mailing lists > Public > www-validator@w3.org > December 2008

End tag omission

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 24 Dec 2008 15:12:01 +0200
Message-ID: <BADD8078E8F44B85915C22617D393F39@JukanPC>
To: Tomáš Hertl <tomas.hertl@volny.cz>, <www-validator@w3.org>

Under Re: [VE][68] Add Subject Here
Tomáš Hertl wrote:

> Validating http://forms.mpsv.cz/uir/adr/OverAdresuInit.html
> Error [68]: "end tag for X omitted, but its declaration does not
> permit this"

The specific error message is "end tag for "DIV" omitted, but its 
declaration does not permit this" and it is accompanied with a note that 
says the start tag for which no end was found is at line 66,
<DIV id="zadejte" style="display:none">

The problem is that what is meant to be its end tag is enclosed within a 
comment. You can see this easily if you open the document in Firefox and do 
View Source (Ctrl+U), since the source code viewer of Firefox uses syntactic 
coloring, e.g. comments are in green.

This reminds me of the principle "comments considered harmful". If markup 
needs commenting, it's probably too complex and should be simplified. If it 
really needs to be complex or special, it might be best to write its 
documentation in a separate file. And "commenting out" is risky, partly 
because you might easily comment out too much, or too little, especially if 
the code already contains comments.

Yucca, http://www.cs.tut.fi/~jkorpela/ 
Received on Wednesday, 24 December 2008 13:12:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:57 UTC