-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Element 'css', attribute 'as': The attribute 'as' is not allowed. (CSS preloading) #18347
Comments
Hi @benoitrenaud. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @benoitrenaud do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @benoitrenaud thank you for you report, as devdocs says https://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-instructions.html attribute AS may be supported. |
@engcom-backlog-nazar Thank you for verifying the issue. Based on the provided information internal tickets |
Hi @vasilii-b. Thank you for working on this issue.
|
…not allowed. (CSS preloading) - Added as attribute to linkType with 3 possible options: style, script and font
Hi @benoitrenaud. Thank you for your report. The fix will be available with the upcoming 2.3.2 release. |
…s' is not allowed. (CSS preloading) #20495
…not allowed. (CSS preloading) - Added as attribute to linkType with 3 possible options: style, script and font
Hi @benoitrenaud. Thank you for your report. The fix will be available with the upcoming 2.2.9 release. |
…ttribute 'as' is not allowed. (CSS preloading) #21261
Hi,
We want to use a technique for loading asynchronous stylesheets.
Ex. https://brianflove.com/2016/07/21/preloading-with-critical-path-css/
The issue is that link attribute "as" isn't valid according to vendor/magento/framework/View/Layout/etc/head.xsd validation file but is a officially supported HTML link attribute as described here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#Attributes
Preconditions
Steps to reproduce
Expected result
Actual result
An exception is thrown by Magento Framework 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'css', attribute 'as': The attribute 'as' is not allowed.
The text was updated successfully, but these errors were encountered: