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

Issue 661968 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

If 'is' is not null and custom element definition not found, NotFoundError should be thrown

Project Member Reported by a.obzhirov@samsung.com, Nov 3 2016

Issue description

Version: Latest
OS: Ubuntu 14.04

What steps will reproduce the problem?
<!doctype html>
<script>
    var XButton = document.registerElement('x-button', {extends: 'button'});
    var elem = document.createElement('button', {is: 'x-button'});
    console.log("check: " + (elem.constructor === XButton));

    try {
      elem = document.createElement('button', {is: 'unknown'});
    } catch (NotFoundError) {
      console.log("check: " + (elem.constructor !== XButton));
    }
</script>

What is the expected output?
Both checks pass, NotFoundError should be thrown 

What do you see instead?
One check pass

Please use labels and text to provide additional information.
https://dom.spec.whatwg.org/#dom-document-createelement, step 4 "If is is non-null and definition is null, then throw a NotFoundError." should be implemented.


 
Cc: yurak@google.com
FYI yurak is implementing customized built-in elements in custom elements v1. Modern DOM spec is referring to that.
Hi, as discussed, probably we don't need this for V0 elements since the spec describes the behavior for V1 only. If it is OK with you guys I will close this bug as WontFix.
Status: WontFix (was: Assigned)
Thank you for filing this and following up.

Sign in to add a comment