W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1999

DOM2: Stylesheet, MediaList and CSS

From: Kumanan Yogaratnam <kumanan@espial.com>
Date: Wed, 04 Aug 1999 10:57:07 -0400
Message-ID: <37A854C3.CB36D065@espial.com>
To: www-dom@w3.org

hi,

i've been going over the DOM2 specs and found an oddity under the stylesheets
section. i searched the mailing list and did not find this mentioned.  if my
observation has  been made previously, please point me towards the discussion.

(note. i just joined the list!)

---

MediaList has a property: cssText

StyleSheet has a property: media

i understand that both must belong to the style sheet dom and not the css dom;
yet the  MediaList property 'cssText' breaks the implementation independent
nature of the stylesheet dom.

it would make more sense to remove the 'cssText' property from MediaList;
instead put it in something like the following class under the css dom.

class CSSMediaList implements MediaList {

	public String             getCssText();
	public void               setCssText(String cssText)
                                            throws DOMException;
}

regards,

kumanan

-- 
Kumanan Yogaratnam  <mailto:kumanan@espial.com>
Espial Group Inc.
http://www.espial.com
Received on Wednesday, 4 August 1999 10:56:59 GMT

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