W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2002

Re: DOM for HTML

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 30 May 2002 12:00:21 -0400
Message-Id: <200205301600.MAA00343@cathedral-seven.mit.edu>
To: SB <step1b@cyberspace.org>
cc: www-dom@w3.org

> Not all attributes mentioned for an HTML element are present
> in the HTML DOM spec for that element? For example, the Table
> element has a style attribute according to
> http://www.w3.org/T/html401/struct/tables.html
> but this attribute is not present in the HTMLTableElement.

That's correct.  "style" is a property on the ElementCSSInlineStyle
interface [1].  As the prose there says:  "The expectation is that an
instance of the ElementCSSInlineStyle interface can be obtained by using
binding-specific casting methods on an instance of the Element interface
when the element supports inline CSS style informations."  So
HTMLTableElement instances that support inline CSS can be cast to
ElementCSSInlineStyle somehow (in the typical browser's ECMA binding you
just reference the "style" property and the casting is done automatically).

[1] http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-ElementCSSInlineStyle

Washington [D.C.] is a city of Southern efficiency and
Northern charm.
                       -- John F. Kennedy
Received on Thursday, 30 May 2002 12:01:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:10 UTC