New issue
Advanced search Search tips

Issue 807205 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 648828



Sign in to add a comment

createElement() with Invalid combination of local-name and 'is' value should not throw

Project Member Reported by tkent@chromium.org, Jan 30 2018

Issue description

Chrome Version: ToT
OS: All but iOS

What steps will reproduce the problem?
(1) Open the following URL:
  data:text/html;charset=utf-8,<body><script> class PlasticDiv extends HTMLDivElement {} customElements.define('plastic-div', PlasticDiv, { extends: 'div' }); var pdiv = document.createElement('div', {is:'iron-div'}); alert(pdiv instanceof PlasticDiv);</script>

What is the expected result?
An alert dialog with "false" is opened.

What happens instead?
No alert dialog.
DevTools console has:
Uncaught DOMException: Failed to execute 'createElement' on 'Document': Custom element definition not found.

Please use labels and text to provide additional information.
  This exception was removed from the specification.
 See https://github.com/w3c/webcomponents/issues/608
 

Comment 1 by tkent@chromium.org, Jan 30 2018

Firefox works correctly.

Comment 2 by tkent@chromium.org, Feb 1 2018

Owner: tkent@chromium.org
Status: Started (was: Available)
Project Member

Comment 3 by bugdroid1@chromium.org, Feb 1 2018

Comment 4 by tkent@chromium.org, Feb 1 2018

Labels: M-66
Status: Fixed (was: Started)

Sign in to add a comment