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

Issue 685959 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 649279
Owner:
Last visit > 30 days ago
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

[V1] document.createElement() used with uppercase characters does not create defined custom element

Reported by dominik....@gmail.com, Jan 27 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36

Steps to reproduce the problem:
1. Define custom element
2. Create node with document.createElement using tag name with uppercase characters

What is the expected behavior?
document.createElement() should work regardless of using lowercase or uppercase letters (ex. "custom-element" or "CUSTOM-ELEMENT").

MDN for createElement says:

When called on an HTML document, createElement() converts tagName to lower case before creating the element.

What went wrong?
Created node has HTMLElement as prototype (which normally would be HTMLUnknownElement) neither lifecycle events was not triggered.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 55.0.2883.95  Channel: n/a
OS Version: OS X 10.12.2
Flash Version: Shockwave Flash 24.0 r0
 
test.js
392 bytes View Download
Labels: Needs-Triage-M56
Components: -Blink>DOM Blink>HTML>CustomElements
Mergedinto: 649279
Owner: dominicc@chromium.org
Status: Duplicate (was: Unconfirmed)
Thanks for the bug report. I can't reproduce this in 56.0.2924.79 (Official Build) beta (64-bit). I think this was fixed in  Issue 649279 .

Sign in to add a comment