@tobi2409/layout 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/layout.mjs +5 -0
- package/package.json +1 -1
package/bin/layout.mjs
CHANGED
|
@@ -36,6 +36,11 @@ function walk(node, visitor) {
|
|
|
36
36
|
for (const child of node.childNodes ?? []) {
|
|
37
37
|
walk(child, visitor)
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
// parse5 speichert den Inhalt von <template> in einem separaten DocumentFragment.
|
|
41
|
+
if (node.content) {
|
|
42
|
+
walk(node.content, visitor)
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
function parseAlignment(value, source) {
|