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