Bug 58584 - Expose shadowPseudoId property to script
Summary: Expose shadowPseudoId property to script
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 63604 63657
Blocks: 63606
  Show dependency treegraph
 
Reported: 2011-04-14 15:36 PDT by Dimitri Glazkov (Google)
Modified: 2012-01-06 12:58 PST (History)
3 users (show)

See Also:


Attachments
proposed patch (3.52 KB, patch)
2011-05-03 02:19 PDT, Philippe Normand
dglazkov: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitri Glazkov (Google) 2011-04-14 15:36:06 PDT
Authors should be able to read and write the shadowPseudoId property on an element.
Comment 1 Dominic Cooney 2011-04-19 19:56:32 PDT
Should that be a reflected attribute, or just a property?
Comment 2 Dimitri Glazkov (Google) 2011-04-20 09:54:33 PDT
(In reply to comment #1)
> Should that be a reflected attribute, or just a property?

Reflected attribute, I think.
Comment 3 Philippe Normand 2011-05-03 02:19:06 PDT
Created attachment 92055 [details]
proposed patch
Comment 4 Dimitri Glazkov (Google) 2011-05-03 06:39:21 PDT
Comment on attachment 92055 [details]
proposed patch

This would actually expose this as a public API on all DOM elements. We're not quite ready for this yet.
Comment 5 Dimitri Glazkov (Google) 2011-05-03 06:46:52 PDT
As an alternative, you could expose a layoutTestController.pseudoShadowId(node) method, which queries the node and returns its pseudoShadowId.
Comment 6 Philippe Normand 2011-05-03 09:32:03 PDT
Ok then, I guess the new patch should be in a separate bug?
Comment 7 Dimitri Glazkov (Google) 2011-05-03 09:45:58 PDT
(In reply to comment #6)
> Ok then, I guess the new patch should be in a separate bug?

Yep, that should go under testing (blocking bug 59823).
Comment 8 Ami Fischman 2011-05-04 16:24:09 PDT
For the record, the new bug tracking LayoutTestController's access to pseudoShadowId is bug 60034.
Comment 9 Dimitri Glazkov (Google) 2012-01-06 12:58:27 PST
This is probably not going to be exposed directly like that. We'll file a new bug if we need it.