Closed Bug 201832 Opened 22 years ago Closed 6 years ago

Combine nodeName and nodeValue columns

Categories

(Other Applications :: DOM Inspector, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jruderman, Unassigned)

Details

Not knowing about the nodeValue column, I proposed showing the text of a text node instead of "#text" in the the left panel in DOM Inspector. My reasons for thinking this would be a good idea: * Text tends to be more useful for knowing "where you are in the document" than element names. * Showing both nodeName and nodeValue doesn't work very well, because the first column (nodeName) has varied indentation and has to be very wide. * nodeValue is blank for most types of nodes. Alex Vincent was opposed to my idea. His objections and my responses: * Suppose the text is "a" and you're looking at an HTML document? The reader will think it is a link element. * Accessibility and clarity: don't rely in color alone. - Response: Put the text in quotes. * The column name is called "nodeName", not "nodeValue". - Response: Keep "#text" and put the text after it in quotes. - Response: The column name would be changed to "Node" anyway, since the nodeValue column would no longer be necessary. * Suppose the text node is a really really long one? - Response: Truncate the text with ellipses.
.
Assignee: bzbarsky → caillon
bz: my apologies for asking jruderman to assign to you; the reason for that is that the fix to this would require work on inIDOMView, I think. Personally I recommend WONTFIX on this bug, as the nodeValue is available to the Inspector user. (But I promised jruderman I wouldn't mark it so.)
Jesse, could you elaborate more on what you epxect to see for, say, each of the 12 current node types?
The following nodes have nodeValues, according to http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1841493061 : Text nodes: one of the following: - "foo" - #text: foo - #text: "foo" I prefer the first. Comment and cdatasection nodes: same as text nodes, with the exception that if "#text" is omitted for text nodes, "#comment" and "#cdata-section" would not be omitted. ProcessingInstruction nodes: I'm not familiar with these nodes, so I don't know what should be shown in addition to (or instead of) the nodeName. Attribute nodes: These do not appear in the tree.
Mass re-assigning bugs to dom.inspector@extensions.bugs
Assignee: caillon → dom.inspector
Product: Core → Other Applications
Assignee: dom-inspector → nobody
QA Contact: timeless → dom-inspector
Bulk close. This component is no longer supported or maintained. https://bugzilla.mozilla.org/show_bug.cgi?id=1499023
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Bulk close. This component is no longer supported or maintained. https://bugzilla.mozilla.org/show_bug.cgi?id=1499023
You need to log in before you can comment on or make changes to this bug.