Bug 161570

Summary: Update the semantics of defined-ness of custom elements per spec changes
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 154907    
Attachments:
Description Flags
Patch none

Ryosuke Niwa
Reported 2016-09-03 17:11:22 PDT
There has some changes to the way a custom element becomes :defined. Namely, when a custom element constructor throws an exception, the element is no longer considered as defined. Furthermore, we should not try to upgrade such an element when it's inserted back into a document. Update our implementation of custom elements per these spec changes.
Attachments
Patch (37.40 KB, patch)
2016-09-03 19:07 PDT, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2016-09-03 19:07:13 PDT
Ryosuke Niwa
Comment 2 2016-09-03 21:49:42 PDT
Comment on attachment 287885 [details] Patch Thanks for the review.
WebKit Commit Bot
Comment 3 2016-09-03 22:11:24 PDT
Comment on attachment 287885 [details] Patch Clearing flags on attachment: 287885 Committed r205416: <http://trac.webkit.org/changeset/205416>
WebKit Commit Bot
Comment 4 2016-09-03 22:11:29 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.