Bugzilla – Bug 656
Emit more useful messages for typoed end tags
Last modified: 2011-01-13 12:42:07 CET
http://validator.nu/?doc=http%3A%2F%2Faneventapart.com%2F&profile=permissive Error: Stray end tag abbrd. From line 50, column 68; to line 50, column 75 5">April 5</abbrd>&ndash Error: End tag span seen but there were unclosed elements. From line 50, column 122; to line 50, column 128 010</abbr></span>↩<span It would be useful if these two messages said which element is on the bottom of the stack. e.g. Error: Stray end tag abbrd (currently open element is abbr.) Error: End tag span seen but there were unclosed elements (missing end tag for abbr).
(In reply to comment #0) > http://validator.nu/?doc=http%3A%2F%2Faneventapart.com%2F&profile=permissive > > Error: Stray end tag abbrd. > > Error: End tag span seen but there were unclosed elements. > > It would be useful if these two messages said which element is on the bottom of > the stack. e.g. > > Error: Stray end tag abbrd (currently open element is abbr.) > > Error: End tag span seen but there were unclosed elements (missing end tag for > abbr). If/when my patch for bug 689 lands, this case will cause the validator to emit one additional separate message: "Error: Unclosed element abbr." (with the location info) Do you think that'll be OK, or do you think we should do something more for this case?
I think that's OK.
see commit for bug 689