Talk:DOM:style
From MDC
This page is confusing. It's trying to document four different things:
- the style property on CSSStyleRule
- the style property on ElementCSSInlineStyle
- the properties of the HTMLStyleElement interface
- the DOM stylesheets specification as a whole.
The first two are reasonably similar because they're both a property that points to a CSSDeclaration. It's worth having some common documentation of these two, but it needs to be written from a clear frame of reference: documentation on CSSDeclaration that describes how to get to a CSSDeclaration object via the style property on different objects. (It's really just convenience that they have the same name.)
The third is totally unrelated, and makes no sense to be on the same page.
The fourth should point to the first two.
It's not clear to me whether this documentation is intended to be organized by interfaces, by objects, by property names, or what. If it were clear, I might try to fix it. -David Baron 15:55, 20 November 2005 (PST)