Open Bug 1463111 Opened 6 years ago Updated 2 years ago

Run the callback from customElements.setElementCreationCallback() immediately if there are already unresolved element

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox62 --- affected

People

(Reporter: timdream, Unassigned)

References

Details

It's possible(*) that by the time a callback is set, there is already unresolved elements in the DOM. 

The element will remain unresolved and my proposed patch in bug 1462703 will still not call the callback if the element is cloned or (re-)appended.

Just to avoid the confusion, I think we should execute the callback and get the definition if there already unresolved elements in the registry.

* this really depends on the timing of how we will use this method. I don't think we will encounter this with usage in bug 1411707 but we still might in the future.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.