html2amp icon indicating copy to clipboard operation
html2amp copied to clipboard

Meta tag attributes blacklisting/whitelisting

Open beliayeu opened this issue 6 years ago • 1 comments

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='.

beliayeu avatar Aug 28 '19 11:08 beliayeu

Hi, @beliayeu

Thank you for your issue let me think for this soon ! 👍

t-jindai avatar Oct 01 '19 12:10 t-jindai