Closed Bug 112817 Opened 23 years ago Closed 23 years ago

DOM Inspector should scroll to the right element in the browser pane

Categories

(Other Applications :: DOM Inspector, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zipo13, Assigned: hewitt)

Details

Attachments

(1 file, 1 obsolete file)

When clicking on elements in the DOM nodes pane the refered element flashes in red in the browser pane. I think it would be nice that if the selected element in the browser pane is not visible, then the Inspector will scroll the browser window to the element first and only then flash.
definitely.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 98 → All
Hardware: PC → All
Attached patch proposed patch (obsolete) — Splinter Review
Fabian, would you review?
Keywords: patch, review
Attached patch Better patch.Splinter Review
Looks like only HTML elements have scrollIntoView.... Put in a check for existence before calling the function, but we may want to come up with a different mechanism for a random XUL document....
Attachment #59861 - Attachment is obsolete: true
Comment on attachment 59865 [details] [diff] [review] Better patch. r=fabian
Attachment #59865 - Flags: review+
Comment on attachment 59865 [details] [diff] [review] Better patch. sr=hewitt
Attachment #59865 - Flags: superreview+
checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Unfortunately, the whole world of XML/XHTML/MathML is left out of the equation. What about another iteration/bug to get a more comprehensive way (using the selection controller -- c.f. example of use in bug 122524 - attachment 82672 [details] [diff] [review]). Cc:me in the loop if you intent to pursue it.
File a bug on me? I'll look at it at some point....
It is not critical. Just one of those enhancements that make the difference.
-> bug 163137 is the follow-up for the non-HTML case.
Product: Core → Other Applications
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: