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)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9alpha

People

(Reporter: jason.barnabe, Assigned: jason.barnabe)

Details

Attachments

(1 file, 1 obsolete file)

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.
Attached patch patch v1 (obsolete) — Splinter Review
Assignee: dom-inspector → jason_barnabe
Status: NEW → ASSIGNED
Attachment #238577 - Flags: superreview?(neil)
Attachment #238577 - Flags: review?(timeless)
Wait a moment.  Wouldn't it be nicer to let people edit these nodes?
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.
Silly me, I was thinking of textboxes for editing text nodes.  :p  Objection withdrawn.
(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)
(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...
(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 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+
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 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
Attached patch css tweakSplinter Review
Switch from a descendant selector to a class selector.
Attachment #239294 - Flags: superreview?(neil)
Attachment #239294 - Flags: superreview?(neil) → superreview+
Since timeless didn't care about the CSS, I figure I don't need his approval for this small change.
Whiteboard: [checkin needed]
That's not how things work.  SR is never a substitute for review.
Attachment #239294 - Flags: review?(timeless)
(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.
Whiteboard: [checkin needed]
Attachment #239294 - Flags: review?(timeless) → review+
Whiteboard: [checkin needed]
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
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: