Siegfried Heintze wrote:
> I've been poking around http://www.mozilla.org/newlayout/xml/ and all I can
> find is specifications. Does not there have to be some special features like
> IE data islands?
>
> Where can I find documentation to explain code like
> "document.getElementById('main').style.backgroundColor =
> (cb.checked?'white':'black');"?
>
> Thanks,
> Siegfried
>
>
>
Hi Siegfried,
All the documentation we have about the DOM (since that's what the above
code uses) is at http://mozilla.org/docs/dom. However the code you
mentioned makes use of a lot of things: DOM1 Core, DOM CSS, and
javascript-specific code. So you will not find one doc that will explain
how that code works.
I am currently working on "Data islands", even though it won't be quite
as detailed since MS has a whole team working on this and I'm alone ;-)
The docs that could interest you the most are
http://mozilla.org/docs/dom/technote/tn-dom-table/
and
http://mozilla.org/docs/web-developer/css1technote/css1tojs.html.
This last doc even has a paragraph specific to background-color.
Just for your information, "cb.checked?'white':'black'" means
if(cb.checked == "true")
return 'white';
else
return 'black';
-Fabian.