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)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jdai, Assigned: edgar)

References

Details

Priority: -- → P2
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
(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
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee: nobody → echen
You need to log in before you can comment on or make changes to this bug.