Bug 161570 - Update the semantics of defined-ness of custom elements per spec changes
Summary: Update the semantics of defined-ness of custom elements per spec changes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks: 154907
  Show dependency treegraph
 
Reported: 2016-09-03 17:11 PDT by Ryosuke Niwa
Modified: 2016-09-03 22:11 PDT (History)
2 users (show)

See Also:


Attachments
Patch (37.40 KB, patch)
2016-09-03 19:07 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 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.
Comment 1 Ryosuke Niwa 2016-09-03 19:07:13 PDT
Created attachment 287885 [details]
Patch
Comment 2 Ryosuke Niwa 2016-09-03 21:49:42 PDT
Comment on attachment 287885 [details]
Patch

Thanks for the review.
Comment 3 WebKit Commit Bot 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>
Comment 4 WebKit Commit Bot 2016-09-03 22:11:29 PDT
All reviewed patches have been landed.  Closing bug.