Skip to content

Commit 57f6957

Browse files
author
Vasilii
committedJan 23, 2019
magento#18347 - Element 'css', attribute 'as': The attribute 'as' is not allowed. (CSS preloading)
- Added as attribute to linkType with 3 possible options: style, script and font
1 parent 470fd45 commit 57f6957

File tree

1 file changed

+9
-0
lines changed
  • lib/internal/Magento/Framework/View/Layout/etc

1 file changed

+9
-0
lines changed
 

‎lib/internal/Magento/Framework/View/Layout/etc/head.xsd

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
<xs:attribute name="type" type="xs:string"/>
2121
<xs:attribute name="order" type="xs:integer"/>
2222
<xs:attribute name="src_type" type="xs:string"/>
23+
<xs:attribute name="as">
24+
<xs:simpleType>
25+
<xs:restriction base="xs:string">
26+
<xs:enumeration value="font" />
27+
<xs:enumeration value="script" />
28+
<xs:enumeration value="style" />
29+
</xs:restriction>
30+
</xs:simpleType>
31+
</xs:attribute>
2332
</xs:complexType>
2433

2534
<xs:complexType name="metaType">

0 commit comments

Comments
 (0)