Closed Bug 1360557 Opened 7 years ago Closed 7 years ago

Improve error reporting when an extended attribute is used on a construct that doesn't support any

Categories

(Core :: DOM: Core & HTML, enhancement)

53 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

Right now we just end up hitting

    assert len(attrs) == 0

in various cases.  We could have much error reporting here, including a pointer to the bogus extended attribute and an explanation of why it's bogus.
Attachment #8862896 - Flags: review?(kyle) → review+
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d066c0cde948
Fix the Web IDL parser to report more useful errors when extended attributes are used on constructs that don't allow them.  r=qdot
https://hg.mozilla.org/mozilla-central/rev/d066c0cde948
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: