Bugzilla – Bug 798
Html5SpecBuilder doesn't report line/column, so maybe report element name instead
Last modified: 2013-07-12 05:25:58 CEST
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."