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

Re: DOM for HTML

From: Step <step1b@cyberspace.org>
Date: Fri, 31 May 2002 04:09:01 -0400 (EDT)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
cc: www-dom@w3.org
Message-ID: <Pine.SUN.3.96.1020531035538.22871B-100000@grex.cyberspace.org>

On Thu, 30 May 2002, Boris Zbarsky wrote:

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


Thanks for the response. This seems to be newly introduced in DOM Level 2,
why were not all attributes for an element put in that HTML*Element in
DOM Level 1?

--st.
Received on Friday, 31 May 2002 04:08:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT