New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 643053 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Email to this user bounced
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 643030



Sign in to add a comment

CustomElements: create an element without browsing context

Project Member Reported by davaajav@google.com, Sep 1 2016

Issue description

When definition is null, if namespace is HTML namespace and either localName is a valid custom element name or is non-null, then set result`s state to "undefined", regardless of the browsing context of the document. 

https://dom.spec.whatwg.org/#concept-element-defined
 
Blockedon: 643030
Project Member

Comment 2 by sheriffbot@chromium.org, Sep 1 2016

Labels: Hotlist-Google
Blockedon: -643030
Blocking: 643030
Components: Blink>DOM
Status: Fixed (was: Untriaged)
selectors/pseudo-class-defined.html correctly tests it by assuming that for createElement, createElementNS should behave the same for documents with or without browsing contexts.
Status: Untriaged (was: Fixed)
Project Member

Comment 9 by bugdroid1@chromium.org, Sep 6 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2bcdfdc0925a30a682bc42d89d2f044de99a35a3

commit 2bcdfdc0925a30a682bc42d89d2f044de99a35a3
Author: davaajav <davaajav@google.com>
Date: Tue Sep 06 06:00:22 2016

CustomElements: tests in a document without browsing context

Custom elements in a document without a browsing context
should behave as follows:
1. element in a document without browsing context should not
   be upgraded
2. a "defined" custom element should not be created in a
  document without browsing context
3. an already defined element should remain defined after being
   inserted into a document without browsing context

BUG= 643053 

Review-Url: https://codereview.chromium.org/2313853002
Cr-Commit-Position: refs/heads/master@{#416591}

[add] https://crrev.com/2bcdfdc0925a30a682bc42d89d2f044de99a35a3/third_party/WebKit/LayoutTests/custom-elements/spec/doc-without-browsing-context.html

Previously, creating a custom element inside a document without browsing context would have left it "uncustomized", since previously in the step 7.3 element`s state is changed to "undefined" only when the document had a browsing context 
Labels: -Pri-3 Pri-2
Owner: davaajav@google.com
Status: Assigned (was: Untriaged)
What's the status of this?
Status: Fixed (was: Assigned)
I think we can mark it as closed. 

Sign in to add a comment