W3C home > Mailing lists > Public > public-webapi@w3.org > February 2006

Re: Targeted Cross-Document Scripting

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 13 Feb 2006 10:42:44 +1100
To: public-webapi@w3.org, public-cdf@w3.org
Message-ID: <20060212234244.GA18161@port.mcc.id.au>

Maciej Stachowiak:
> > referencingElement + contentDocument could replace the need for 1 if
> > you attached the functions to the document instead of the global object.

Jim Ley:
> Attaching functions to the document would be a bad idea though I
> think. In IE you can even make it actually impossible, and many less
> common UAs have similar problems. (Notably the Java ones including the
> Batik/IceBrowser CDF combination I believe, but haven't checked)

Indeed Batik doesn't support setting arbitrary properties on host
objects (and it isn't required to).  Attaching functions and other
script objects could be done with DOM 3 user data on the document node.

 Cameron McCormack			ICQ: 26955922
 cam (at) mcc.id.au			MSN: cam (at) mcc.id.au
 http://mcc.id.au/			JBR: heycam (at) jabber.org
Received on Monday, 13 February 2006 05:08:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:19 UTC