Link to statement that attached Shadow DOM
Categories
(DevTools :: Inspector, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: sebo, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
134 bytes,
text/html
|
Details |
When a Shadow DOM is added imperatively via JS, the markup view should link from the #shadow-root node to the statement that attached the Shadow DOM in the Debugger.
Sebastian
Comment 1•2 years ago
|
||
We show a custom button in the markupview for webcomponents, which leads to the debugger.
Sebo, do you have a test case here?
| Reporter | ||
Comment 2•2 years ago
|
||
The custom badge links from a custom element to its constructor.
What I am requesting is linking from a shadow root to the attachShadow() statement. That's important for debugging shadow DOMs independently from the custom elements they are attached to.
Note that Shadow DOMs, while mostly used in combination with custom elements, are actually a separate concept. They can also be attached to normal HTML elements.
So, in the attached test case, I'd expect a badge and/or a context menu entry for #shadow root (open) that refers to line 4 of the source within the Debugger, where the attachShadow() method is called.
Sebastian
Updated•1 year ago
|
Description
•