Closed Bug 348668 Opened 18 years ago Closed 18 years ago

attribute "nodeName" column needs to be split up in "prefix" and "localName" columns

Categories

(Other Applications :: DOM Inspector, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: sdwilsh)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 For example "bs:nonsense" as a nodeName of an attribute, would be a lot more readable as "bs" "nonsense" because of the layout improvement with 2 columns. Plus it would show Mozilla is more likely to actually interpret the namespaces correctly, making the content coder more confident, as namespaces are still often interpreted wrong in general. When introducing attribute sorting (another bugreport on its way) this would also provide another aspect to sort on. Reproducible: Always
I do believe that Neil made a comment about us doing this in the past.
Version: unspecified → Trunk
Attached patch v1.0 (obsolete) — Splinter Review
Why not...this is trivial, and seems beneficial (if I'm wrong, timeless will tell me anyway). I cleaned up the formatting for the remaining column as well. Neil - since this is the same file there is still Bug 270023 that is awaiting your comment. I can fix that in this patch, or I can fix it there. Regardless, I'm waiting on you :)
Assignee: dom-inspector → comrade693
Status: UNCONFIRMED → ASSIGNED
Attachment #233705 - Flags: superreview?(neil)
Attachment #233705 - Flags: review?(timeless)
patch looks okay to me, unofficial r=ajvincent.
(In reply to comment #2) >Neil - since this is the same file there is still Bug 270023 that is >awaiting your comment. I can fix that in this patch, or I can fix it there. Fixing it here will be fine. As for the comment, I noticed that in dom/dom.xul the default column order is nodeName, localName, prefix, namespaceURI, nodeType, nodeValue, although maybe we should change that ordering to something more sensible. Finally you should note that hiding the nodeName column by default won't affect people who have already hidden and shown it again.
(In reply to comment #4) >Finally you should note that hiding the nodeName column by default won't affect >people who have already hidden and shown it again. Sorry, I hadn't noticed that you're removing it. I'm not sure you should.
Comment on attachment 233705 [details] [diff] [review] v1.0 Although I'd prefer to see nodeName restored.
Attachment #233705 - Flags: superreview?(neil) → superreview+
Attachment #233705 - Flags: review?(timeless) → review+
personally, I'd agree with Neil, about leaving nodeName. But that's up to you, I guess.
Alright, I'm looking at Bug 212789 which appears would allow for horizontal scrolling of trees. Assuming that works, I'll put back nodeName, and then have prefix and localName be hidden, as well as placing namespaceURI after nodeValue. This will please everyone I think and allow for scrolling.
Attached patch v1.1Splinter Review
r=timeless, sr=neil Added nodeName back and reordered as per Comment 4, and opened new bug to address the "right" ordering (Bug 348764).
Attachment #233705 - Attachment is obsolete: true
Whiteboard: [checkin needed]
Checked in to trunk. /mozilla/extensions/inspector/resources/content/viewers/domNode/domNode.xul 1.16
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
QA Contact: timeless → dom-inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: