Closed
Bug 603406
Opened 14 years ago
Closed 14 years ago
domNode viewer assumes some non-element nodes are element nodes
Categories
(Other Applications :: DOM Inspector, defect)
Other Applications
DOM Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: crussell, Assigned: crussell)
References
Details
Attachments
(1 file)
2.65 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
The attribute tree is only relevant if the node is an element. Similarly cmdEditInsert should only be enabled if the node is an element.
Attachment #482288 -
Flags: review?(neil)
Comment 1•14 years ago
|
||
crussell: Would it be worth preserving cmdEditInsert support for document fragment nodes? (Granted, it's not easy to get one into DOM Inspector...)
Assignee | ||
Comment 2•14 years ago
|
||
(In reply to comment #1) > crussell: Would it be worth preserving cmdEditInsert support for document > fragment nodes? (Granted, it's not easy to get one into DOM Inspector...) It's not that hard to get one; we "export" inspectObject in hooks.js for anybody to use. That'll give you an object viewer inspecting whatever you pass in. But document fragments can't have attributes anyway.
Comment 3•14 years ago
|
||
Oh, sorry. I thought cmdEditInsert was about inserting child nodes, not attributes.
Comment 4•14 years ago
|
||
Comment on attachment 482288 [details] [diff] [review] hide the tree for and disable Insert for non-elements [Checkin: comment 5] I figured out when Insert used to be erroneously enabled.
Attachment #482288 -
Flags: review?(neil) → review+
Assignee | ||
Comment 5•14 years ago
|
||
Comment on attachment 482288 [details] [diff] [review] hide the tree for and disable Insert for non-elements [Checkin: comment 5] Pushed: http://hg.mozilla.org/dom-inspector/rev/911d1a632765
Attachment #482288 -
Attachment description: hide the tree for and disable Insert for non-elements → hide the tree for and disable Insert for non-elements [Checkin: comment 5]
Assignee | ||
Updated•14 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•