Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to element creation during parsing per F2F #366

Closed
domenic opened this issue Jan 25, 2016 · 1 comment
Closed

Changes to element creation during parsing per F2F #366

domenic opened this issue Jan 25, 2016 · 1 comment

Comments

@domenic
Copy link
Collaborator

domenic commented Jan 25, 2016

During parsing, the moment the open tag is seen:

  1. Increment the ignore destructive writes counter
  2. Drop out of the parser, like you do for script elements
  3. Queue the constructor.
  4. Queue the attributeChangedCallbacks, in order, as you see new attributes.
  5. Run the custom element callbacks queue, synchronously
  6. If the return value of the constructor is not of the correct registered name, just create a HTMLUnknownElement instead and stop processing the queue
  7. If any of the callbacks run throw, just create a HTMLUnknownElement instead and stop processing the queue
  8. Decrement the counter
  9. 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

@domenic
Copy link
Collaborator Author

domenic commented Mar 10, 2016

This should now be implemented:

There are a couple rough edges:

Review appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants