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

Correct [CEReactions] usage on HTMLOptionsCollection and HTMLTableRowElement #1974

Merged
merged 3 commits into from
Oct 28, 2016

Conversation

annevk
Copy link
Member

@annevk annevk commented Oct 26, 2016

In particular when setting HTMLOptionsCollection’s length, option
elements can be removed that might have descendant custom elements for
which disconnectedCallback should trigger.

When using HTMLTableRowElement’s insertCell(), a custom element can
never be inserted or affected.

Fixes WICG/webcomponents#596 and fixes
WICG/webcomponents#595.

…Element

In particular when setting HTMLOptionsCollection’s length, option
elements can be removed that might have descendant custom elements for
which disconnectedCallback should trigger.

When using HTMLTableRowElement’s insertCell(), a custom element can
never be inserted or affected.

Fixes WICG/webcomponents#596 and fixes
WICG/webcomponents#595.
@domenic domenic added the topic: custom elements Relates to custom elements (as defined in DOM and HTML) label Oct 26, 2016
@domenic
Copy link
Member

domenic commented Oct 26, 2016

@rniwa can I assume you're writing tests for these? In particular for HTMLOptionsCollection's length since there's apparently a Chrome bug there.

@annevk reminder when merging to tweak the commit message so the first line is smaller (probably don't mention the specific elements).

@domenic domenic added the needs tests Moving the issue forward requires someone to write tests label Oct 26, 2016
@rniwa
Copy link

rniwa commented Oct 28, 2016

I have written tests locally but haven't landed them into WebKit or wrote a PR for web-platform-tests since I'm out sick today. Will try to finish that up tomorrow.

@@ -8543,7 +8543,7 @@ partial interface <dfn id="document" data-dfn-lt="">Document</dfn> {
// <span>dynamic markup insertion</span>
[<span>CEReactions</span>] <span>Document</span> <span data-x="dom-document-open">open</span>(optional DOMString type = "text/html", optional DOMString replace = "");
<span>WindowProxy</span> <span data-x="dom-document-open">open</span>(USVString url, DOMString name, DOMString features);
[<span>CEReactions</span>] void <span data-x="dom-document-close">close</span>();
void <span data-x="dom-document-close">close</span>();
Copy link
Member

Choose a reason for hiding this comment

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

@domenic
Copy link
Member

domenic commented Oct 28, 2016

Let's merge this since we know the WebKit tests are coming.

@domenic domenic removed the needs tests Moving the issue forward requires someone to write tests label Oct 28, 2016
@domenic domenic dismissed zcorpan’s stale review October 28, 2016 22:48

I reverted the bad commit

@domenic domenic merged commit 404f98b into master Oct 28, 2016
@domenic domenic deleted the annevk/CEReactions-fixes branch October 28, 2016 22:50
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.

HTMLOptionsCollection's length attribute must have CEReactions
4 participants