Skip to content
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

<style> tag not being converted #257

Open
rrjanbiah opened this issue Feb 14, 2019 · 0 comments
Open

<style> tag not being converted #257

rrjanbiah opened this issue Feb 14, 2019 · 0 comments

Comments

@rrjanbiah
Copy link

When a HTML content contains style tag, it doesn't convert it. Few weird things happen:

  1. $amp->convertToAmpHtml() completely removes style tag
  2. But, $amp->warningsHumanText() displays error something like (from input string--not output string):
<style> on line 7
- The tag 'head > style[amp-boilerplate] - old variant' is deprecated - use 'head > style[amp-boilerplate]' instead.
   [code: DEPRECATED_TAG  category: DEPRECATION see: https://github.com/ampproject/amphtml/blob/master/spec/amp-boilerplate.md]

Context: Using $amp->loadHtml($html, ['scope' => Scope::HTML_SCOPE]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant