W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

Interface StyleSheet: should changes in the 'media' attribute be reflected in the ownerNode ?

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 19 Jan 2001 05:26:40 -0800 (Pacific Standard Time)
To: <www-dom@w3.org>
Message-ID: <Pine.WNT.4.31.0101190520220.908-100000@HIXIE.netscape.com>

Me again!

If one changes the media list of a StyleSheet interface that is associated
with a particular node in the DOM, e.g. a <link> element, should the
changes be reflected back in this node?

e.g. assuming the element has:

   <link rel="stylesheet" href="foo.css">

...and I do:

   document.styleSheets.item(0).media.appendMedium('braille');

...should the element then become:

   <link rel="stylesheet" href="foo.css" media="braille">

...?

How about if the stylesheet was linked using an @import, or an HTTP 'Link'
header? Should those be changed too?

Cheers,
-- 
Ian Hickson                                     )\     _. - ._.)       fL
Netscape, Standards Compliance QA              /. `- '  (  `--'
+1 650 937 6593                                `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________
Received on Friday, 19 January 2001 08:26:51 GMT

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