Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1504127.lrhLVTZ7X0@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 11 Dec 2012 00:34:23 +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+&. <1609195.3fhKV6gEnR@PointedEars.de> <7546793.cFEfZxNJhn@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 37 NNTP-Posting-Date: 11 Dec 2012 00:34:25 CET NNTP-Posting-Host: a8f72fe4.newsspool3.arcor-online.net X-Trace: DXC=hmjA3emaJ@EFJ3]dH>I?oEMcF=Q^Z^V3H4Fo<]lROoRA8kFK@;YV\el<1AGLV9[nkH8@MUF X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:17663 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 … ,- | | 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, (2004)