Skip to content

Commit

Permalink
#18347 - Element 'css', attribute 'as': The attribute 'as' is not all…
Browse files Browse the repository at this point in the history
…owed. (CSS preloading)

- Added as attribute to linkType with 3 possible options: style, script and font
  • Loading branch information
Vasilii committed Jan 23, 2019
1 parent 470fd45 commit 57f6957
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/internal/Magento/Framework/View/Layout/etc/head.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="order" type="xs:integer"/>
<xs:attribute name="src_type" type="xs:string"/>
<xs:attribute name="as">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="font" />
<xs:enumeration value="script" />
<xs:enumeration value="style" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>

<xs:complexType name="metaType">
Expand Down

0 comments on commit 57f6957

Please sign in to comment.