ChrisB: Ersatz für <noscript>

Beitrag lesen

Hi,

document.documentElement.className = 'hasJs';

<style type="text/css">
html.hasJs .noscript {

Fuer html ist ein class-Attribut nicht definiert - es mag trotzdem "funktionieren", aber korrekt ist es nicht.
Warum bist du nicht bei der Variante mit body geblieben, die ich vorgeschlagen habe?

MfG ChrisB

--
„This is the author's opinion, not necessarily that of Starbucks.“