Bug 110909
Summary: | Web Inspector: pseudoId is not shown when shadowPseudoId is being overridden | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dima Gorbik <dgorbik> |
Component: | Web Inspector (Deprecated) | Assignee: | Alexander Pavlov (apavlov) <apavlov> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | apavlov, burg, dino, eric.carlson, keishi, loislo, pfeldman, pmuellr, timothy, vsevik, web-inspector-bugs, yurys |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Dima Gorbik
shadowPseudoId() is being implemented in Element base class and returns a 'pseudoId' attribute which inspector also displays. But some derived from Element classes chose to override 'shadowPseudoId' to return their own pseudoId instead of setting an attribute. Inspector could probably query shadowPseudoId() to find out the pseudo id for those classes.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Dean Jackson
I'm not sure the inspector calls pseudoId itself, it just iterates over the attributes on an Element. The problem is that shadowPseudoId isn't exposed that way.
InspectorDOMAgent::buildArrayForElementAttributes would have to special case pseudo, which is a bit weird. Instead, if there is a shadowPseudoId it could be exposed explicitly and displayed in the node tree differently.
Brian Burg
AFAICT, this is shown now in inspector on trunk.