W3C home > Mailing lists > Public > www-style@w3.org > November 2002

Re: Changing the CSS Href in NS 6/7?

From: David Woolley <david@djwhome.demon.co.uk>
Date: Mon, 18 Nov 2002 22:48:37 +0000 (GMT)
Message-Id: <200211182248.gAIMmbx07689@djwhome.demon.co.uk>
To: www-style@w3.org

> Is there anyway, through *client side code*, to change the entire
>  reference to another CSS?

This isn't really on topic as it is a document object model question about

Looking at the relevant DOM specification, suggests that one must delete
the link element and insert a new one to achieve a change; there is no
replace procedure.  There are no specific semantics associated with
modifying the href parameter, although a link only instantiates a
style sheet when both href and type have been set for the first time.

Actually this makes sense as one otherwise has problems replacing 
a CSS sheet with an XSLT one.

This is all legacy stuff as XML processing instructions should be used.
Received on Tuesday, 19 November 2002 01:43:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:04 UTC