[Webkit-unassigned] [Bug 16081] New: Web Inspector misleads the user about the namespace of nodes with no namespace.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 21 01:31:28 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=16081

           Summary: Web Inspector misleads the user about the namespace of
                    nodes with no namespace.
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: Macintosh
               URL: data:application/xhtml+xml,%3C?xml%20version=%221.0%22%2
                    0encoding=%22UTF-
                    8%22?%3E%20%3C!DOCTYPE%20html%20PUBLIC%20%22-
                    //CL//DTD%20XHTML%201.0%20Transitional%20plus%20Embed//E
                    N%22%20%22http://www.w3.org/Graphics/xhtml1-
                    transitional-plus-
                    embed.dtd%22%3E%3Chtml%20xmlns=%22http://www.w3.org/1999
                    /xhtml%22%3E%3Chead%3E%3Ctitle%3ENS%20bug%3C/title%3E%3C
                    script%3Efunction%20ipl()%20{%20var%20p%20=%20document.c
                    reateElement('p');%20p.appendChild(document.createTextNo
                    de('hello'));%20var%20g%20=%20document.createElementNS('
                    http://www.w3.org/2000/svg',%20'g');%20var%20d%20=%20doc
                    ument.getElementById('d');%20d.appendChild(p);%20d.appen
                    dChild(g);}%3C/script%3E%3C/head%3E%3Cbody%20onload=%22i
                    pl()%22%3E%3Cdiv%20id='d'%3E%3C/div%3E%3C/body%3E%3C/htm
                    l%3E
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: drj at pobox.com


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.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list