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

Use Web IDL to construct custom element constructors #2457

Merged
merged 2 commits into from
Mar 28, 2017

Conversation

domenic
Copy link
Member

@domenic domenic commented Mar 23, 2017

This fixes part of #2381 (the other part is in DOM's "create an
element", and fixed by web-platform-tests/wpt#5208).

Tests: web-platform-tests/wpt#5208

This cannot be merged until whatwg/webidl#328 is also merged.

@domenic domenic added do not merge yet Pull request must not be merged per rationale in comment topic: custom elements Relates to custom elements (as defined in DOM and HTML) needs tests Moving the issue forward requires someone to write tests labels Mar 23, 2017
domenic added a commit to whatwg/dom that referenced this pull request Mar 23, 2017
domenic added a commit to whatwg/dom that referenced this pull request Mar 23, 2017
@domenic domenic force-pushed the custom-element-construct branch from 7e0bb3f to 745cf0e Compare March 23, 2017 05:19
domenic added a commit to web-platform-tests/wpt that referenced this pull request Mar 23, 2017
@domenic domenic removed the needs tests Moving the issue forward requires someone to write tests label Mar 23, 2017
domenic added a commit to whatwg/dom that referenced this pull request Mar 27, 2017
This fixes part of #2381 (the other part is in DOM's "create an
element"). Note this has two consequences, as discussed there:

* Properly managing the entry and incumbent concepts. This is
  technically unobservable in the current spec landscape.
* Ensuring microtasks are run, if the construct is initiated with an
  empty stack (such as during the parser).
@domenic domenic removed the do not merge yet Pull request must not be merged per rationale in comment label Mar 27, 2017
@domenic domenic force-pushed the custom-element-construct branch from 745cf0e to 1feaaf7 Compare March 27, 2017 04:49
@domenic
Copy link
Member Author

domenic commented Mar 27, 2017

This and its counterpart PRs in DOM and WPT are ready to merge.

source Outdated
@@ -67013,7 +67017,9 @@ customElements.define("x-foo", class extends HTMLElement {

<ol>
<li>
<p>Let <var>constructResult</var> be <span>Construct</span>(<var>C</var>).</p>
<p>Let <var>constructResult</var> be the result of <span
data-x="es-constructing-callback-functions">constructing</span> <var>C</var> with no
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comma before with? That's what whatwg/dom#430 does. LGTM with that.

domenic added a commit to whatwg/dom that referenced this pull request Mar 28, 2017
@domenic domenic merged commit b4f7f50 into master Mar 28, 2017
@domenic domenic deleted the custom-element-construct branch March 28, 2017 04:21
domenic added a commit to web-platform-tests/wpt that referenced this pull request Apr 24, 2017
foolip pushed a commit to web-platform-tests/wpt that referenced this pull request Apr 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: custom elements Relates to custom elements (as defined in DOM and HTML)
Development

Successfully merging this pull request may close these issues.

2 participants