bug: experimentalSlotFixes
(and slotChildNodesFix
/ scopedSlotTextContentFix
) broken
#6054
Closed
3 tasks done
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
latest
Current Behavior
Add
to
stencil.config
.Then do something like
document.querySelector("my-component").childNodes
- where 'my-component' isscoped: true
.The nodelist returned will be the 'internal' nodes as rendered within the component.
Additionally,
scopedSlotTextContentFix
does not adhere to "return values described in MDN's article on textContent" < as described in the Stencil documentation.Expected Behavior
According to the documentation
document.querySelector("my-component").childNodes
scoped: true
- shouljd only return the nodes that were slotted, not the internal, component rendered, nodes (and the same withchildren
/ slotted elements)scopedSlotTextContentFix
should "return values described in MDN's article on textContent" < as described in the Stencil documentation.System Info
No response
Steps to Reproduce
add
to stencil.config, build components then do
.childNodes
/.children
/.textContent
on ascoped: true
componentCode Reproduction URL
https://codesandbox.io/p/devbox/stencil-web-component-forked-ds6rj3?workspaceId=72400648-5e20-4c72-af8a-d0ff6c9d8a44
Additional Information
No response
The text was updated successfully, but these errors were encountered: