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 - 2006-05-09 - MartinCleaver
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.