Tag names of elements in template content capitalized even in XHTML documents
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: 1981km, Assigned: hsivonen)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0
Steps to reproduce:
Open the attached document.
Actual results:
Output:
DIV
Expected results:
Output:
div
Unless I'm reading https://html.spec.whatwg.org/multipage/scripting.html#appropriate-template-contents-owner-document incorrectly.
Chromium outputs in lowercase.
I was able to replicate this on console. Used windows10 64bit , MacOS 10.15 , and ubuntu 20 64bit
and appears with capital letters in beta 87b4, nightly 88 and Release 86
Reporter | ||
Comment 2•3 years ago
|
||
Component: Untriaged → Console
Product: Firefox → DevTools
That's not right. I encountered this bug in code not involving the console, I just used it in the example.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
hsivonen, you've dealt with some of the template issues, IIRC.
Assignee | ||
Comment 4•3 years ago
|
||
Looks like the bug is right about here:
https://searchfox.org/mozilla-central/rev/3f97afc8db535f9b0232222cb48cc4cbf8334c76/dom/base/Document.cpp#12087
Assignee | ||
Comment 5•3 years ago
|
||
Assignee | ||
Comment 6•3 years ago
|
||
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0d286830ebb Make the template contents owner XML when not in HTML. r=edgar
Comment 8•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/28001 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Description
•