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


Groups > comp.lang.javascript > #17663

Re: baffled trying to call style.display value

Message-ID <1504127.lrhLVTZ7X0@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-12-11 00:34 +0100
Subject Re: baffled trying to call style.display value
Newsgroups comp.lang.javascript
References (1 earlier) <b4e1ee7a-a68b-40cc-bafc-af3a473b03f6@o30g2000vbu.googlegroups.com> <1609195.3fhKV6gEnR@PointedEars.de> <f1d77ed8-ae96-454f-8ebd-409791470768@o6g2000yql.googlegroups.com> <7546793.cFEfZxNJhn@PointedEars.de> <ka5l59$dtq$1@news.albasani.net>
Followup-To comp.lang.javascript

Followups directed to: comp.lang.javascript

Show all headers | View raw


Stefan Weiss wrote:

> On 2012-12-10 16:04, Thomas 'PointedEars' Lahn wrote:
>>> Thomas 'PointedEars' Lahn  wrote:
>>>> 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.
> 
> Those properties are part of the CSS2Properties interface, not the
> CSSStyleDeclaration interface.

Correct.  I was describing the referred object, not the interface (the comma 
was intended to make that clear).  Interfaces have attributes; objects have 
properties.  It should be noted that …

,-<http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSS2Properties>
| 
| Getting an attribute of this interface is equivalent to calling the
| getPropertyValue method of the CSSStyleDeclaration interface. Setting an
| attribute of this interface is equivalent to calling the setProperty
| method of the CSSStyleDeclaration interface.

The CSS2Properties interface is referred to from the description of the 
CSSStyleDeclaration interface, so the latter is a good start for reading.  
That also shows why the property name is “style”: the ElementCSSInlineStyle 
interface has a single attribute named “style” of type 
“CSSStyleDeclaration”, which element objects implement.


HTH

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