Closed
Bug 1419309
Opened 7 years ago
Closed 7 years ago
Fix custom element WPT failures at Document.html
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: jdai, Assigned: edgar)
References
Details
There are remains 3 test failures at Document.html[1][2][3].
[1] https://searchfox.org/mozilla-central/rev/919dce54f43356c22d6ff6b81c07ef412b1bf933/testing/web-platform/tests/custom-elements/reactions/Document.html
[2] https://searchfox.org/mozilla-central/rev/919dce54f43356c22d6ff6b81c07ef412b1bf933/testing/web-platform/meta/custom-elements/reactions/Document.html.ini
[3] http://w3c-test.org/custom-elements/reactions/Document.html
Reporter | ||
Updated•7 years ago
|
Priority: -- → P2
Reporter | ||
Comment 1•7 years ago
|
||
It seems like we can't get definition from parser[1] when document.write[ln] a custom element in iframe, so willExecuteScript is false, it'll not run custom element constructors. However, it works fine in non-iframe case.
[1] https://searchfox.org/mozilla-central/rev/9f3bd430c2b132c86c46126a0548661de876799a/parser/html/nsHtml5TreeOperation.cpp#414-415
Assignee | ||
Comment 2•7 years ago
|
||
(In reply to John Dai[:jdai] from comment #1)
> It seems like we can't get definition from parser[1] when document.write[ln]
> a custom element in iframe
The custom elements registry is replaced after document.open() call [1], and there is a spec discussion: https://github.com/whatwg/html/issues/1698#issuecomment-298748641.
[1] https://searchfox.org/mozilla-central/rev/be78e6ea9b10b1f5b2b3b013f01d86e1062abb2b/dom/html/nsHTMLDocument.cpp#1681-1683
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 4•7 years ago
|
||
Fixed and merged in upstream; https://github.com/w3c/web-platform-tests/pull/8529.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → echen
You need to log in
before you can comment on or make changes to this bug.
Description
•