intercom / intercom-rails

The easiest way to install Intercom in a Rails app.
https://developers.intercom.io/reference
MIT License
281 stars 107 forks source link

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

Open davidmason opened 4 years ago

davidmason commented 4 years ago

Version info

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