NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 798 - Html5SpecBuilder doesn't report line/column, so maybe report element name instead
Html5SpecBuilder doesn't report line/column, so maybe report element name ins...
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: Utilities
HEAD
All All
: P2 enhancement
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-07 03:43 CET by Michael[tm] Smith
Modified: 2013-07-12 05:25 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2010-12-07 03:43:54 CET
Html5SpecBuilder doesn't report line/column numbers when it throws SAXParseException. And if I understand the code correctly, it would be difficult to make it report line and column numbers.

The lack of any line/column numbers makes it a challenge to try to identify which part of the spec it's failing to parse as expected.

So, maybe instead we could just have the exception messages include the current element name and/or ID from whatever element section of the spec it's trying to parse.

For example:

"Malformed spec at element body (the-body-element-0): Expected dt to be context dt but it was not."