Show namespace of an element somewhere
Reported by
jeromin....@gmail.com,
Aug 22 2017
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3188.4 Safari/537.36 Steps to reproduce the problem: jQuery does not support SVG elements and therefor can generate elements with the wrong namespace. But even with vanilla js this bite me sometimes. If you generate the wrong namespace an element is shown in the tree, but not rendered. See https://jsfiddle.net/7n0hvgg5/ for an clickable example. What is the expected behavior? The error should be visible somehow. What went wrong? In the example I generated an SVGTextElement and a "HTMLTextElement". An HTMLTextElement does not exists and no HTML element is rendered in an SVG context. But in the devTools this problem is not easy visible. Perhaps devTools can show the $0.namespaceURI of the active element somewhere. Did this work before? No Chrome version: 62.0.3188.4 Channel: dev OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version:
,
Aug 23 2017
#1, this is a feature request for devtools UI, not a bug per se. Currently the only visual way to discover such incorrectly namespaced elements in devtools UI is to open Properties subpanel (in the toolbar with Styles, Computed, Event listeners) where such invalid elements will have HTMLUnknownElement inheritance.
,
Aug 23 2017
#2 thanks for your comment. I did not know the properties subpanel in details. After thinking about a bit, we perhaps need no display of namespace but a console warning like: "Element 'text' is not rendered because elements with namespace http://www.w3.org/1999/xhtml are not supported in this subtree"
,
Aug 23 2017
Thank you for providing more feedback. Adding requester "kkaluri@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 24 2017
Assuming this as feature request, changing the status to untriage, so that the issue would be addressed. Thank you.
,
Aug 28 2017
,
Dec 10
This is a valid feature request, but it is pretty low priority considering how rarely it is a problem for people and you can find the information through the console. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by kkaluri@chromium.org
, Aug 23 2017Labels: Needs-Triage-M62 Needs-Feedback
79.9 KB
79.9 KB View Download
103 KB
103 KB View Download