question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't connect correctly if page has comment containing body tag before body opening

See original GitHub issue

Sync doesn’t start if you put an HTML comment containing the string <body> before the actual <body> opening tag. Eg:

...
    <!-- <body> -->
</head>
<body>
...

or

...
</head>
<!-- <body> -->
<body>
...

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
mediavrogcommented, Jun 8, 2015

Also broke in combination with the Zendesk help script https://support.zendesk.com/hc/en-us/articles/203908456-Using-Web-Widget-to-embed-customer-service-in-your-website?page=5#comment_203266588

I suggested them to adjust the script 😃

You have to change

o.write('<body onload="document._l();">')

to

o.write('<' + 'body onload="document._l();">')
0reactions
ghostcommented, May 21, 2015

Could you then please place a mention about this somewhere visibly in the docs? The problem is obviously how unintuitive it is. I simply commented out a body tag with some angular params, among x other things, and then spent an hour figuring out why it isn’t reloading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The HTML Comment Tag: Here's How To Use It In Your Code »
HTML comments are visible to anyone that views the page source code, but are not rendered when the HTML document is rendered by...
Read more >
HTML5 Validation Error: body start tag seen but an element of ...
I had a similar problem but with <head> , giving the following W3C markup error: A head start tag seen but an element...
Read more >
The Document Body element - HTML - MDN Web Docs - Mozilla
The <body> HTML element represents the content of an HTML document. There can be only one <body> element in a document. ... Sectioning...
Read more >
4.3 Sections — HTML5 - W3C
A body element's end tag may be omitted if the body element is not immediately followed by a comment. Allowed ARIA role attribute...
Read more >
How to Comment & Comment Out in HTML - HubSpot Blog
In HTML, a comment is text enclosed within < !╌ ╌> tags. This syntax tells the browser that they are comments and should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found