Closed Bug 1440517 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 9640 - custom-elements: An element created with 0-length 'is' should not match to ':defined'

Categories

(Testing :: web-platform-tests, enhancement, P3)

enhancement

Tracking

(firefox61 fixed)

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: mozilla.org, Unassigned)

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 9640 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/w3c/web-platform-tests/pull/9640
Details from upstream follow.

Kent Tamura wrote:
>  custom-elements: An element created with 0-length 'is' should not match to ':defined'
>  
>  createElement() should assumes 0-length 'is' valid though web authors
>  can't define such custom elements.
>  
>  https://dom.spec.whatwg.org/#dom-document-createelement
>  > 3. Let is be the value of the is member of options, or null if no such
>  > member exists.
>  
>  https://dom.spec.whatwg.org/#concept-create-element
>  > 7.3. If namespace is the HTML namespace, and either localName is a
>  > valid custom element name or is is non-null, then set result’s custom
>  > element state to "undefined".
>  
>  IsEmpty() checks for "is" values should be IsNull().
>  
>  Bug: 814644
>  Change-Id: I273f4aa07dd029e483365a9b31586297862a7140
>  
>  Reviewed-on: https://chromium-review.googlesource.com/930941
>  WPT-Export-Revision: 68ff8772663fdc7a584113d213f36d9af3090a68
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fac068a1f22e
[wpt PR 9640] - custom-elements: An element created with 0-length 'is' should be 'undefined' state., a=testonly
https://hg.mozilla.org/mozilla-central/rev/fac068a1f22e
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.