Skip to content

Commit a40815e

Browse files
committed
Add Header (h1>h6) tags to layout htmlTags Allowed types
1 parent dc2e73a commit a40815e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/internal/Magento/Framework/View/Layout/Generator/Container.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ class Container implements Layout\GeneratorInterface
3939
'table',
4040
'tfoot',
4141
'ul',
42+
'h1',
43+
'h2',
44+
'h3',
45+
'h4',
46+
'h5',
47+
'h6',
4248
];
4349

4450
/**

lib/internal/Magento/Framework/View/Layout/etc/elements.xsd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@
140140
<xs:enumeration value="table"/>
141141
<xs:enumeration value="tfoot"/>
142142
<xs:enumeration value="ul"/>
143+
<xs:enumeration value="h1"/>
144+
<xs:enumeration value="h2"/>
145+
<xs:enumeration value="h3"/>
146+
<xs:enumeration value="h4"/>
147+
<xs:enumeration value="h5"/>
148+
<xs:enumeration value="h6"/>
143149
</xs:restriction>
144150
</xs:simpleType>
145151

0 commit comments

Comments
 (0)