On 8 Jun 2007, at 16:22, Thierry Koblentz wrote:
The idea is not to parse the tree looking for an element to hide, but rather use document.write() to write CSS declaration(s) that'll hide that element
right from the start.

http://www.tjkdesign.com/articles/toggle_elements.asp

Despite the claims of the article, using document.write() will not work in XHTML[1] documents. Browsers don't support it in XHTML mode.


[1] XHTML served as text/html doesn't count, and using this technique with such documents is inviting trouble if the document is ever served with the correct content type

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to