WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
16258
Web Inspector should highlight when clicking a node's closing tag
https://bugs.webkit.org/show_bug.cgi?id=16258
Summary
Web Inspector should highlight when clicking a node's closing tag
Matt Lilek
Reported
2007-12-02 11:18:22 PST
Right now, in the web inspector, if you click an element's closing tag in the tree list, nothing happens. We should at least select or point to the opening tag for it, but it would be awesome if we did some kind of spiffy highlighting or something - maybe like XCode 3 does?
http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/art/code_focus.jpg
Attachments
[PATCH] Proposed solution
(12.62 KB, patch)
2010-03-23 09:42 PDT
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
[PATCH] Merged conflicting changes
(14.55 KB, patch)
2010-03-24 10:54 PDT
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
[PATCH] Fixed test failure
(16.97 KB, patch)
2010-03-25 05:19 PDT
,
Alexander Pavlov (apavlov)
pfeldman
: review-
Details
Formatted Diff
Diff
[PATCH] Removed an odd method
(13.92 KB, patch)
2010-03-26 07:46 PDT
,
Alexander Pavlov (apavlov)
pfeldman
: review+
pfeldman
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Timothy Hatcher
Comment 1
2007-12-02 13:36:09 PST
I think jumping to the open tag would be good. We would need to not do this when arrowing through the tree.
Adam Roben (:aroben)
Comment 2
2008-01-29 11:06:20 PST
<
rdar://problem/5712871
>
Eric Fields
Comment 3
2009-04-30 08:05:56 PDT
Bump. This specifically references Inspect > Elements. To reiterate, clicking on a closing tag should have the exact same behavior to clicking on the opening tag: highlight, get all applied CSS styles, DOM path…
Alexander Pavlov (apavlov)
Comment 4
2010-03-23 09:42:09 PDT
Created
attachment 51430
[details]
[PATCH] Proposed solution The closing tag itself is selected when clicked/keyboard-traversed.
Alexander Pavlov (apavlov)
Comment 5
2010-03-24 10:54:36 PDT
Created
attachment 51524
[details]
[PATCH] Merged conflicting changes
Alexander Pavlov (apavlov)
Comment 6
2010-03-25 05:19:34 PDT
Created
attachment 51630
[details]
[PATCH] Fixed test failure
Pavel Feldman
Comment 7
2010-03-25 10:08:37 PDT
Comment on
attachment 51630
[details]
[PATCH] Fixed test failure As we agreed verbally, let us remove the singleOrPairedTreeElements method. It would simplify code a lot, while the only thing we would lose is highlighting closing tag as a part of search results.
Alexander Pavlov (apavlov)
Comment 8
2010-03-26 07:46:25 PDT
Created
attachment 51740
[details]
[PATCH] Removed an odd method
Pavel Feldman
Comment 9
2010-03-28 05:26:24 PDT
Comment on
attachment 51740
[details]
[PATCH] Removed an odd method
> +WebInspector.ElementsTreeElement = function(node, elementCloseTag)
Please merge it carefully with Joe's changes.
> { > - var hasChildrenOverride = node.hasChildNodes() && !this._showInlineText(node); > + this.elementCloseTag = elementCloseTag;
Private?
> - if (this._expandedChildrenLimit === x) > + if (this._expandedChildrenLimit === x || this.elementCloseTag)
Why this change?
Alexander Pavlov (apavlov)
Comment 10
2010-03-29 10:13:53 PDT
Code merged, comments addressed. Committing to
http://svn.webkit.org/repository/webkit/trunk
... M LayoutTests/ChangeLog M LayoutTests/inspector/elements-panel-limited-children.html M WebCore/ChangeLog M WebCore/inspector/front-end/ElementsTreeOutline.js Committed
r56727
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug