File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ public function convertNode(DOMNode $node, int $level = 0): DOMNode
310
310
$ this ->handleHtml ($ node );
311
311
$ this ->handleText ($ node );
312
312
$ this ->stripEventHandlers ($ node );
313
- $ this ->handleSlots ($ node );
313
+ $ this ->handleSlots ($ node, $ level );
314
314
$ this ->cleanupAttributes ($ node );
315
315
$ this ->addScopedAttribute ($ node , $ level );
316
316
}
@@ -1345,15 +1345,15 @@ protected function createVariableBlock(): string
1345
1345
/**
1346
1346
* @throws Exception
1347
1347
*/
1348
- protected function handleSlots (DOMElement $ node ): void
1348
+ protected function handleSlots (DOMElement $ node, int $ level ): void
1349
1349
{
1350
1350
if ($ node ->nodeName !== 'slot ' ) {
1351
1351
return ;
1352
1352
}
1353
1353
1354
1354
if ($ node ->hasChildNodes ()) {
1355
1355
foreach ($ node ->childNodes as $ childNode ) {
1356
- $ this ->convertNode ($ childNode );
1356
+ $ this ->convertNode ($ childNode, $ level + 1 );
1357
1357
}
1358
1358
}
1359
1359
You can’t perform that action at this time.
0 commit comments