Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #17636

Re: baffled trying to call style.display value

Message-ID <1609195.3fhKV6gEnR@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-12-10 01:24 +0100
Subject Re: baffled trying to call style.display value
Newsgroups comp.lang.javascript
Followup-To comp.lang.javascript
References <8b828e29-6604-45c7-9166-f17e5b39724d@googlegroups.com> <b4e1ee7a-a68b-40cc-bafc-af3a473b03f6@o30g2000vbu.googlegroups.com>

Followups directed to: comp.lang.javascript

Show all headers | View raw


[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”.)

<http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037>


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, <cife6q$253$1$8300dec7@news.demon.co.uk> (2004)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

baffled trying to call style.display value JeffG <jeffgutsell@fuse.net> - 2012-11-27 08:08 -0800
  Re: baffled trying to call style.display value Scott Sauyet <scott.sauyet@gmail.com> - 2012-11-27 08:20 -0800
    Re: baffled trying to call style.display value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-10 01:24 +0100
      Re: baffled trying to call style.display value Scott Sauyet <scott.sauyet@gmail.com> - 2012-12-10 05:03 -0800
        Re: baffled trying to call style.display value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-10 16:04 +0100
          Re: baffled trying to call style.display value Scott Sauyet <scott.sauyet@gmail.com> - 2012-12-10 08:54 -0800
            Re: baffled trying to call style.display value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-10 19:36 +0100
          Re: baffled trying to call style.display value Stefan Weiss <krewecherl@gmail.com> - 2012-12-10 22:45 +0100
            Re: baffled trying to call style.display value Andrew Poulos <ap_prog@hotmail.com> - 2012-12-11 10:19 +1100
            Re: baffled trying to call style.display value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-11 00:34 +0100
        Re: baffled trying to call style.display value Scott Sauyet <scott.sauyet@gmail.com> - 2012-12-10 07:39 -0800
          Re: baffled trying to call style.display value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-10 17:10 +0100
  Re: baffled trying to call style.display value Jake Jarvis <pig_in_shoes@yahoo.com> - 2012-11-27 17:33 +0100
    Re: baffled trying to call style.display value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-11-27 17:49 +0100
  Re: baffled trying to call style.display value JeffG <jeffgutsell@fuse.net> - 2012-11-27 09:38 -0800
    Re: baffled trying to call style.display value Tim Streater <timstreater@greenbee.net> - 2012-11-27 17:59 +0000
      Re: baffled trying to call style.display value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-11-27 21:01 +0100
        Re: baffled trying to call style.display value Tim Streater <timstreater@greenbee.net> - 2012-11-27 22:32 +0000
          Re: baffled trying to call style.display value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-11-27 23:50 +0100

csiph-web