RESOLVED WONTFIX 16081
Web Inspector misleads the user about the namespace of nodes with no namespace.
https://bugs.webkit.org/show_bug.cgi?id=16081
Summary Web Inspector misleads the user about the namespace of nodes with no namespace.
David Jones
Reported 2007-11-21 01:31:28 PST
Just to clarify I'm talking about the floaty translucent black Web Inspector that comes with Safari 3.0.3 (nightly seems to give a completely different Web Inspector). Web Inspector shows the Namespace URI for nodes with a namespace just fine. But if from the tree of nodes you select a node that does not have a namespace, then instead of indicating this somehow, Web Inspector simply displays the Namespace URI for whatever node you were previously looking at this. URL is an XHTML page with a div element. JavaScript creates a p element with no namespace and a g element from the SVG namespace, both within this div. Use Web Inspector to inspect the page and open the tree until you can see the div, p, and g nodes. Click on the nodes in this order: div, p, g, p. Note that depending on which node you clicked most recently the Namespace URI display for the p node will either be the XHTML namespace or the SVG namespace. This is not good as it can be very confusing when doing namespace debugging.
Attachments
Adam Roben (:aroben)
Comment 1 2007-11-21 01:41:33 PST
The code for the old, HUD-style Web Inspector has been removed from the tree. Does this issue still happen with the current Web Inspector? If not, this bug should be closed as invalid.
David Jones
Comment 2 2007-11-21 01:53:23 PST
(In reply to comment #1) > The code for the old, HUD-style Web Inspector has been removed from the tree. > Does this issue still happen with the current Web Inspector? If not, this bug > should be closed as invalid. > No idea as I can't find where in the "current" Web Inspector it attempts to display the Namespace URI for nodes. Do you know where? I would say the Summary still holds because the current Web Inspector doesn't show the Namespace URI and that is misleading. :) It does incorrectly report the p node as being an HTMLParagraphElement. Which makes me suspicious.
Adam Roben (:aroben)
Comment 3 2007-11-21 01:55:51 PST
(In reply to comment #2) > (In reply to comment #1) > > The code for the old, HUD-style Web Inspector has been removed from the tree. > > Does this issue still happen with the current Web Inspector? If not, this bug > > should be closed as invalid. > > > > No idea as I can't find where in the "current" Web Inspector it attempts to > display the Namespace URI for nodes. Do you know where? I would say the > Summary still holds because the current Web Inspector doesn't show the > Namespace URI and that is misleading. :) Sounds like you should file another bug saying that the inspector no longer shows namespace URIs. > It does incorrectly report the p node as being an HTMLParagraphElement. Which > makes me suspicious. If that is indeed a bug, then you should file another bug about that.
David Jones
Comment 4 2007-11-21 02:33:45 PST
(In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #1) > > > The code for the old, HUD-style Web Inspector has been removed from the tree. > > > Does this issue still happen with the current Web Inspector? If not, this bug > > > should be closed as invalid. > > > > > > > No idea as I can't find where in the "current" Web Inspector it attempts to > > display the Namespace URI for nodes. Do you know where? I would say the > > Summary still holds because the current Web Inspector doesn't show the > > Namespace URI and that is misleading. :) > > Sounds like you should file another bug saying that the inspector no longer > shows namespace URIs. bug 16083 filed http://bugs.webkit.org/show_bug.cgi?id=16083
David Kilzer (:ddkilzer)
Comment 5 2007-11-21 03:04:12 PST
Resolving as WONTFIX since this issue is in the old HUD-style web inspector.
Note You need to log in before you can comment on or make changes to this bug.