Repository navigation
Commit 119f9c9
committed
fix(compiler): skip JSXStyleElement in strong-dom rendersChild check
Sibling-scoped <style> blocks are extracted by the CSS pipeline and never
become rendered host children. The rendersChild helper fell through to
`return true` for JSXStyleElement, making element.children true for
containers that only hold a scoped style block. This caused false
OCTANE_STRONG_MANAGED_DOM_WRITE errors on valid widget mounts (e.g.
appendChild) into those hosts.
Add the same JSXStyleElement exclusion that isRenderableChild,
hasOnlyDefinitelyNullishJsxChildren, and the renderer-boundaries
equivalent already apply. Add a regression test for mounting into a
container whose only children are scoped style blocks.1 parent f001359 commit 119f9c9
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
402 | 415 | | |
403 | 416 | | |
404 | 417 | | |
| |||
0 commit comments