Closed
Bug 352770
Opened 18 years ago
Closed 18 years ago
DOMI DOM Node textboxes should not appear editable
Categories
(Other Applications :: DOM Inspector, defect)
Other Applications
DOM Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9alpha
People
(Reporter: jason.barnabe, Assigned: jason.barnabe)
Details
Attachments
(1 file, 1 obsolete file)
3.50 KB,
patch
|
timeless
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
The current textboxes under the DOM Node view look like they are editable, but they aren't. We want to make them look not editable but still allow selection.
Assignee | ||
Comment 1•18 years ago
|
||
Assignee: dom-inspector → jason_barnabe
Status: NEW → ASSIGNED
Attachment #238577 -
Flags: superreview?(neil)
Attachment #238577 -
Flags: review?(timeless)
Comment 2•18 years ago
|
||
Wait a moment. Wouldn't it be nicer to let people edit these nodes?
Assignee | ||
Comment 3•18 years ago
|
||
I don't think it's feasible to change the node name, type, or namespace. Name and namespace would require creating a new node and moving all the attributes, descendants, and then that node would lose CSS rules and JavaScript properties. Changing the type has all those problems, plus we'd have to check to make sure that the new type would be allowed in that position and that attributes even exist for that type.
Comment 4•18 years ago
|
||
Silly me, I was thinking of textboxes for editing text nodes. :p Objection withdrawn.
Assignee | ||
Comment 5•18 years ago
|
||
(In reply to comment #4) > Silly me, I was thinking of textboxes for editing text nodes. :p Objection > withdrawn. > Yeah, I've already fixed that :) (bug 112922)
Comment 6•18 years ago
|
||
(In reply to comment #0) >The current textboxes under the DOM Node view look like they are editable They do not! Perhaps there's a bug in your theme...
Assignee | ||
Comment 7•18 years ago
|
||
(In reply to comment #6) > (In reply to comment #0) > >The current textboxes under the DOM Node view look like they are editable > They do not! Perhaps there's a bug in your theme... > The default Linux theme for Firefox? In any case, making something look like a disabled textbox implies that it will be enabled in some situations. This patch just changes the UI to match what we do in similar situations on other places, like Page Info.
Comment 8•18 years ago
|
||
Comment on attachment 238577 [details] [diff] [review] patch v1 I guess the class="plain" changes are OK then, but I don't see page info adding extra padding, and using descendant selectors is wrong anyway.
Attachment #238577 -
Flags: superreview?(neil) → superreview+
Assignee | ||
Comment 9•18 years ago
|
||
Page Info puts a separator column with a width of 0.5em between the two. I figured this way's better. Why are descendant selectors wrong? I added the padding at the bottom because it looked scrunched against the tree without it. The previous code didn't have this problem because the textbox was taller without class="plain".
Attachment #238577 -
Flags: review?(timeless) → review+
Comment 10•18 years ago
|
||
Comment on attachment 238577 [details] [diff] [review] patch v1 mozilla/extensions/inspector/resources/skin/modern/viewers/domNode/domNode.css 1.6 mozilla/extensions/inspector/resources/skin/classic/viewers/domNode/domNode.css 1.6 mozilla/extensions/inspector/resources/content/viewers/domNode/domNode.xul 1.17
Attachment #238577 -
Attachment is obsolete: true
Comment 11•18 years ago
|
||
(In reply to comment #9) >Why are descendant selectors wrong? http://developer.mozilla.org/en/docs/Writing_Efficient_CSS#Avoid_the_descendant_selector.21
Assignee | ||
Comment 12•18 years ago
|
||
Switch from a descendant selector to a class selector.
Attachment #239294 -
Flags: superreview?(neil)
Updated•18 years ago
|
Attachment #239294 -
Flags: superreview?(neil) → superreview+
Assignee | ||
Comment 13•18 years ago
|
||
Since timeless didn't care about the CSS, I figure I don't need his approval for this small change.
Whiteboard: [checkin needed]
Comment 14•18 years ago
|
||
That's not how things work. SR is never a substitute for review.
Assignee | ||
Updated•18 years ago
|
Attachment #239294 -
Flags: review?(timeless)
Comment 15•18 years ago
|
||
(In reply to comment #14) > That's not how things work. SR is never a substitute for review. The change is trivial, and I don't agree with your statement that a super-review is never equivalent to a review; that depends entirely on the reviewer. Demanding that the patch go through another round of review in this case is ridiculous.
Updated•18 years ago
|
Whiteboard: [checkin needed]
Attachment #239294 -
Flags: review?(timeless) → review+
Assignee | ||
Updated•18 years ago
|
Whiteboard: [checkin needed]
Comment 16•18 years ago
|
||
extensions/inspector/resources/skin/modern/viewers/domNode/domNode.css 1.7 extensions/inspector/resources/skin/classic/viewers/domNode/domNode.css 1.7 extensions/inspector/resources/content/viewers/domNode/domNode.xul 1.18
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → mozilla1.9alpha
Updated•17 years ago
|
QA Contact: timeless → dom-inspector
You need to log in
before you can comment on or make changes to this bug.
Description
•