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

Invalid markup (script tags should be in head) #321

Open
davidmason opened this issue Dec 19, 2019 · 0 comments
Open

Invalid markup (script tags should be in head) #321

davidmason opened this issue Dec 19, 2019 · 0 comments

Comments

@davidmason
Copy link

Version info

  • intercom-rails version: 0.4.1
  • Rails version: 6.0.1

Expected behavior

Only valid markup should be generated. Style tags should be inserted in the document head.

Actual behavior

3 style tags are inserted within divs in the body, which fails markup validation.

The validation failure message is: "Error: Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)"

Steps to reproduce

  1. Install and configure as normal
  2. Run page through w3 validator (I am using https://dequeuniversity.com/validator bookmarklet to send the rendered markup to the validator.

Logs

n/a

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