NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 656 - Emit more useful messages for typoed end tags
Emit more useful messages for typoed end tags
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on: 689
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-25 03:31 CEST by Simon Pieters
Modified: 2011-01-13 12:42 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Pieters 2009-09-25 03:31:26 CEST
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).
Comment 1 Michael[tm] Smith 2010-12-28 08:43:11 CET
(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?
Comment 2 Simon Pieters 2010-12-28 12:27:12 CET
I think that's OK.
Comment 3 Michael[tm] Smith 2011-01-13 12:42:07 CET
see commit for bug 689