Bug 15476
| Summary: | DOM tree fully expands some elements when arrowing up | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Hayes <heizusan> |
| Component: | Web Inspector (Deprecated) | Assignee: | Timothy Hatcher <timothy> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | ||
| Priority: | P3 | ||
| Version: | 523.x (Safari 3) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
Chris Hayes
When using the web inspector, and viewing the render tree, if I use the arrow keys to scroll down, the inspector moves from element to element without expanding (from one tr to the next in a table, unless the first tr is expanded).
But, if I scroll up using the arrow keys, the inspector expands every element automatically, taking me to the deepest nested element that comes next in the list. This is not helpful when trying to find a particular element in a level of the render tree (e.g. finding which table in a list of tables is pushing a site wide).
Perhaps this behavior has a use, but I find it inconsistent and disruptive.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Hayes
I didn't notice this distinction before: it only happens when scrolling up from one element to a deeper nested element. So if you scroll up from a tr, into an already expanded tr (and onto a td), it will recursively expand the last td in the new tr as far as it can.
Timothy Hatcher
I have seen this before and was the one to introduce the bug. This is the desired behavior for the sidebar list and the search results, but not for the DOM. We need to make this an optional behavior in the TreeOutline class.
Timothy Hatcher
Fixed in r26997. http://trac.webkit.org/projects/webkit/changeset/26997