Summary: | connectedCallback is invoked by the HTML parser after child nodes had been inserted | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andrea Giammarchi <andrea.giammarchi> | ||||
Component: | UI Events | Assignee: | Ryosuke Niwa <rniwa> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | achristensen, cdumez, esprehn+autocc, ews-watchlist, fred.wang, gyuyoung.kim, rniwa, rwlbuis, tkent, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | 188336 | ||||||
Bug Blocks: | 154907 | ||||||
Attachments: |
|
Description
Andrea Giammarchi
2018-03-23 04:05:08 PDT
We're adding test cases for this issue to WPT. https://github.com/w3c/web-platform-tests/pull/10251 We pass almost all test cases once the patch for the bug 188189 is landed but there's one test case in custom-elements/parser/parser-sets-attributes-and-children.html we fail: HTML parser should call connectedCallback before appending child nodes Created attachment 347149 [details]
Fixes the bug
Comment on attachment 347149 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=347149&action=review > Source/WebCore/ChangeLog:19 > + (WebCore::HTMLConstructionSite::insertCustomElement): Fixed the bug by manually executign the scheduled tasks. executing Committed r234893: <https://trac.webkit.org/changeset/234893> Comment on attachment 347149 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=347149&action=review > Source/WebCore/ChangeLog:9 > + Invoke the custom element reactions after constructing and inserting a custom element as specifed in step 3.3 of: nit: specified |