[whatwg] One document or two?

Kristof Zelechovski giecrilj at stegny.2a.pl
Thu May 24 12:13:13 PDT 2007

The script <http://status.whatwg.org/annotate-web-apps.js> used throughout
the specification pages, including
-type-sniffing.html#content-type-sniffing>, causes an error under Internet
Explorer.  The fix I posted was not applied, so I repost the patch:

var style = document.createElement("style");
style.type = "text/css"; // required in html4...
var styleText = document.createTextNode("\
 .TBW, .WIP, .SCS { margin-left:-2em; border-left:.2em solid;
padding-left:1.8em; }\
 .TBW { border-color:red; }\
 .WIP { border-color:orange; }\
 .SCS { border-color:green; }\
var an3err
try { style.appendChild(styleText) } 
catch(an3err) { 
if(an3err.number == -0x7FFF0001) style.styleSheet.cssText =
else throw an3err } 


-----Original Message-----
From: whatwg-bounces at lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Sander Tekelenburg
Sent: Thursday, May 24, 2007 7:26 PM
To: whatwg at whatwg.org
Subject: Re: [whatwg] One document or two?

It would be better if that wouldn't have to be such a hack though; if the
spec itself would be marked up to allow reliable targeting through CSS. (For
instance, Simon's CSS currently hides nothing at
which doesn't seem to be aimed at web publishers.) It would also be better

More information about the whatwg mailing list