[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
<http://www.whatwg.org/specs/web-apps/current-work/multipage/section-content
-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 =
styleText.nodeValue 
else throw an3err } 
document.getElementsByTagName("head")[0].appendChild(style);

Frustrated,
Chris

-----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?

[snip]
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
<http://www.whatwg.org/specs/web-apps/current-work/multipage/section-content
-type-sniffing.html#content-type-sniffing>,
which doesn't seem to be aimed at web publishers.) It would also be better
[snip]




More information about the whatwg mailing list