Problem
The
HTML validator would be a lot more useful if it told which div it was closing at each step
http://validator.w3.org/
told me there was a there is a /div missing - but where?
The code here is generated - from many files. To help with diagnostics we have a convention that we comment which div you are closing, so looking at the
HTML you could see </div> <!-- /whatever -->
But the validator strips the comments from the parse tree (fair enough) but does not tell me anywhere which div it closed at each step.
Solution
http://notepad-plus.sourceforge.net/uk/site.htm
- notepad++ has a folding feature that lets you fold tags with their matching close tag.
You can find the problem by starting deleting <div></div>'s from the innermost outward
My thanks go to Elviso on #html for assistance!
--
Contributors: MartinCleaver
Discussion
--
MartinCleaver - 09 May 2006