Details
-
Bug
-
Resolution: Fixed
-
Low
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>