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

DOM should add hooks for sync events that happen during insert/remove operations #57

Open
travisleithead opened this issue Jul 21, 2015 · 3 comments

Comments

@travisleithead
Copy link
Member

As discsussed at Custom Elements F2F:

  • blur
  • focus
  • beforeunload
    (other?)
    ...events require some synchronous processing during tree insertion and/or removal
    (This may have been discussed during the part of the meeting where there was nothing scribed...?)
@travisleithead
Copy link
Member Author

@annevk, I have been working with Edge devs on re-working our new DOM to handle synchronous callouts during tree mutation APIs (specifically for handling mutation events). We came up with some invariants that might be worth considering for the spec:

  1. Tree operation primitives cannot fail (e.g., they must always succeed in the end)
  2. 'Remove' tree primitive guarantees that on completion the target node has no parent.
  3. 'Insert' tree primitive can assume that the target node has no parent.

@annevk
Copy link
Member

annevk commented Jul 27, 2015

Gecko bug on blur (doesn't fire it at the moment): https://bugzilla.mozilla.org/show_bug.cgi?id=559561

@esprehn will try firing these events using custom element callback timing in Blink.

@annevk
Copy link
Member

annevk commented Mar 16, 2017

See also #305.

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

No branches or pull requests

2 participants