You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Changes to element creation during parsing per F2F #366
Drop out of the parser, like you do for script elements
Queue the constructor.
Queue the attributeChangedCallbacks, in order, as you see new attributes.
Run the custom element callbacks queue, synchronously
If the return value of the constructor is not of the correct registered name, just create a HTMLUnknownElement instead and stop processing the queue
If any of the callbacks run throw, just create a HTMLUnknownElement instead and stop processing the queue
Decrement the counter
Resume parsing
Still TBD: does innerHTML do step "run the custom element callbacks queue, synchronously" or not? At the meeting we determined innerHTML uses nanotasks, like all other IDL APIs
Step 9.1. is currently "Invoke custom element actions (for which queue!?! just for element maybe!?)" reflecting our/my lack of clarity about custom element callbacks and how they work or should work. That will be resolved as part of Integrate callback invocation with IDL #186.
Activity
domenic commentedon Mar 10, 2016
This should now be implemented:
There are a couple rough edges:
Review appreciated!
Specify custom elements parser behavior