Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-9441

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

    XMLWordPrintable

Details

    Description

      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:

      #!html
      
      <!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>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            0812e2c16f03 SergiyKolesnikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: