1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #9441 closed

Injected rum.js invalidates HTML 5 (BB-10468)

Sergiy Kolesnikov
created an issue

HTML5 spec requires that a charset attribute on a meta element must be in the first 1024 bytes. The rum.js is injected directly after the head opening tag and makes the charset attribute appear after the first 1024 bytes. This invalidates the HTML document.

rum.js should be injected after the <meta charset="utf-8"> element.

Reference to the spec (see Bullet 3).

Example:

<!DOCTYPE html>
<html lang="en">
  <head>rum.js IS NOW INJECTED HERE
    <meta charset="utf-8">
    rum.js SHOULD BE INJECTED HERE
  </head>
  <body>
    <h1>It Works!</h1>
  </body>
</html>

Comments (4)

  1. Log in to comment