Closed Bug 344455 Opened 18 years ago Closed 18 years ago

JSMSG_XML_TAG_NAME_MISMATCH diagnostic needs improvement

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.8.1beta2

People

(Reporter: brendan, Assigned: brendan)

References

Details

(Keywords: verified1.8.1)

Attachments

(1 file)

* It points off by one to the wrong character with the ...^ token pointer.
* It does not tell the name of the start tag, which makes it hard to find the mismatch when looking at non-trivial markup where, e.g., a point tag was closed with > instead of />.

Patch momentarily.

/be
Attached patch fixSplinter Review
Attachment #229025 - Flags: review?(mrbkap)
The risk of this change is too close to zero to write out in decimal.

The benefit is a diagnostic that helps find the unopened or unclosed tag by name, starting from the error point and going back to the first occurrence of that name. This was helpful in reducing a real-world HTML file into XML and JS, and using E4X to parse the XML.

/be

Status: NEW → ASSIGNED
Attachment #229025 - Flags: review?(mrbkap) → review+
Comment on attachment 229025 [details] [diff] [review]
fix

Checked into trunk, can bake for a day or two, doesn't need much.

Looking for Firefox beta 2 approval, this is not a blocker, but it's a safe rider.

/be
Attachment #229025 - Flags: approval1.8.1?
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 229025 [details] [diff] [review]
fix

a=dbaron on behalf of drivers.  Please check in to MOZILLA_1_8_BRANCH and marked fixed1.8.1 when you have done so.
Attachment #229025 - Flags: approval1.8.1? → approval1.8.1+
Fixed on the 1.8 branch.

/be
Keywords: fixed1.8.1
Checking in regress-344455.js;
/cvsroot/mozilla/js/tests/e4x/Regress/regress-344455.js,v  <--  regress-344455.js
initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.8.1, trunk 20060723 win/linux/mac(ppc|tel)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: