Bug 188629 - Constructing a custom element should immediately execute microtasks if there are no scripts
Summary: Constructing a custom element should immediately execute microtasks if there ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 154907
  Show dependency treegraph
 
Reported: 2018-08-15 20:54 PDT by Ryosuke Niwa
Modified: 2018-08-22 03:07 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2018-08-15 20:54:11 PDT
Via step 6.2. of https://dom.spec.whatwg.org/#concept-create-element
to step 13.2. of https://heycam.github.io/webidl/#construct-a-callback-function
to step 3 of https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script
we should be executing microtasks immediately after constructing a custom element.

This bug was caught by a test case in LayoutTests/imported/w3c/web-platform-tests/custom-elements/microtasks-and-constructors.html