html2amp
html2amp copied to clipboard
Meta tag attributes blacklisting/whitelisting
Problem
- html containing meta tags with disallowed attributes is converted to invalid amp
References
- https://github.com/ampproject/amphtml/blob/master/validator/validator-main.protoascii
- https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml#html-tags
Code sample https://codesandbox.io/s/html2-amp-meta-7xem2?fontsize=14&previewwindow=tests
html containing
<meta http-equiv="cleartype" content="on" />
fails with error
The attribute 'http-equiv' may not appear in tag 'meta name= and content='.
Hi, @beliayeu
Thank you for your issue let me think for this soon ! 👍