Tags:
create new tag
, view all tags

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

 
Topic revision: r1 - 09 May 2006 - 03:40:12 - MartinCleaver
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback