Skip to content

Commit 0e9b367

Browse files
committed
Rename script ref="initialData" to data for browser compliance
1 parent 6cefa49 commit 0e9b367

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Observer/AddHtmlAttributesToComponentBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private function getInitialDataElement(ComponentInterface $component): string
7575
{
7676
$json = $this->getJsData($component);
7777
return <<<EOF
78-
<script x-ref="initialData" type="text/x-loki-init">$json</script>
78+
<data hidden x-ref="initialData">$json</data>
7979
EOF;
8080
}
8181

0 commit comments

Comments
 (0)