Re: Targeted Cross-Document Scripting

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