How do I display html within chrome's noscript tag?
Asked Answered
E

2

28

When I view noscript in Chrome I'm seeing raw html displayed when JavaScript is turned off.

This:

<!DOCTYPE html>
<head></head>
<body>
<noscript>
    <div>No Javscript</div>
</noscript>
</body>

Will display:

<div>No Javscript</div>

This used to work, so I'm guessing there was a regression, but I can't find anything about it on the web. In other browsers(safari, firefox), I don't see the HTML. I'm using Chrome 26.0.1410.43 on OS X 10.7.5

Enolaenormity answered 4/4, 2013 at 0:22 Comment(3)
Could the extra space in </no script> be the problem?Curriculum
Sorry, it was a typo.Enolaenormity
Now that we know it's a typo, I've updated your question (so other people aren't confused).Baryon
R
47

Refreshing the page twice fixes this issue.

And it only appears when you first switch to disabling javascript (i.e. someone who browses with javascript disabled would not experience it)

Ruby answered 8/8, 2013 at 2:30 Comment(5)
Why page has to be refreshed twice in chrome only and not in any other browsers?Cyperaceous
Is this a bug in Chrome? Doesn't sound like a feature to me.Cymose
@Jeff, it has been reported as a bug many times, including hereRuby
I don't think this is a solution.Zea
There is still no solution I have found so far, although the bug has been reported already back in 2013 and the issue still persists. bugs.chromium.org/p/chromium/issues/detail?id=235158Dermatome
E
3

Ah, I spoke too soon. Turning off AdBlock is the answer.

Enolaenormity answered 4/4, 2013 at 0:27 Comment(2)
I was having this problem also and found that refreshing the page twice fixed it (I think turning AdBlock off refreshes the page also, which may be why this fixed it for you)Ruby
I can confirm that disabling adblock does not solve the problem. I tried disabling adblock, then disabled javascript, then reloaded the page once. HTML was not rendered properly in the noscript tag. Reloaded a second time, and HTML was rendered correctly from then on.Cymose

© 2022 - 2024 — McMap. All rights reserved.