WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
88706
Web Inspector: Support user attributes in DOMNode
https://bugs.webkit.org/show_bug.cgi?id=88706
Summary
Web Inspector: Support user attributes in DOMNode
Alexander Pavlov (apavlov)
Reported
2012-06-09 04:25:21 PDT
This is needed for decorating DOM elements in the tree outline. It should be possible to determine if an element's children have a given user attribute defined, too.
Attachments
Patch
(15.83 KB, patch)
2012-06-13 06:40 PDT
,
Alexander Pavlov (apavlov)
pfeldman
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2012-06-13 06:40:30 PDT
Created
attachment 147307
[details]
Patch
Pavel Feldman
Comment 2
2012-06-13 07:27:22 PDT
Comment on
attachment 147307
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=147307&action=review
> Source/WebCore/inspector/front-end/DOMAgent.js:707 > + setUserAttribute: function(name, value)
setUserProperty ?
> Source/WebCore/inspector/front-end/DOMAgent.js:712 > + var didHaveAttribute = this._userAttributes[name] !== null && this._userAttributes[name] !== undefined && this._userAttributes[name] !== false;
Lets clear on "null" only
> Source/WebCore/inspector/front-end/DOMAgent.js:718 > + if (nowHaveAttribute)
This looks weird, I would extract "remove" method
> Source/WebCore/inspector/front-end/DOMAgent.js:731 > + return this._descendantUserAttributeCounters && this._descendantUserAttributeCounters[name] ? this._descendantUserAttributeCounters[name] : 0;
I think this._descendantUserAttributeCounters can exist at all times.
Alexander Pavlov (apavlov)
Comment 3
2012-06-13 08:04:16 PDT
Committed
r120208
: <
http://trac.webkit.org/changeset/120208
>
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