Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1609195.3fhKV6gEnR@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Mon, 10 Dec 2012 01:24:27 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. Supersedes: <1860567.hBc2D4H4pG@PointedEars.de> MIME-Version: 1.0 Lines: 35 NNTP-Posting-Date: 10 Dec 2012 01:24:27 CET NNTP-Posting-Host: 456652c5.newsspool3.arcor-online.net X-Trace: DXC=c9J\DV?>M1ieoCI^f\Y]EaMcF=Q^Z^V3h4Fo<]lROoRa8kFK`0>RcioBFYWi>?SUnjNFO3n X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:17636 [Supersedes] Scott Sauyet wrote: > JeffG wrote: >> [ ... ] >> For some reason, the function is unable to return the style.display >> value that was set by the CSS file [ ... ] > > `someElement.style` represents the collection of properties known to > the Javascript engine, which is, chiefly, the ones set by that > engine. What can one say to such a mindbogglingly large amount of misinformation in just one sentence? Nonsense? Bullshit? Words fail to describe it. The “style” property of DOM element objects refers to an object that implements the CSSStyleDeclaration interface, whose properties in turn have values that reflect the properties declared in the “style” attribute value of the represented element. This has absolutely nothing to do with any script engine or the programming language. The programming language – an ECMAScript implementation – is just the interface language to the language-independent DOM API here. (Almost needless to say that there is no “Javascript engine” either, because there is no “Javascript”.) PointedEars, shaking his head -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, (2004)