W3C home > Mailing lists > Public > www-svg@w3.org > September 2004

Re: XBL in document fragments

From: Erik Arvidsson <erik@eae.net>
Date: Tue, 28 Sep 2004 19:32:43 +0200
Message-ID: <4159A03B.1020406@eae.net>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-svg@w3.org

Boris Zbarsky wrote:
> Erik Arvidsson wrote:
>> Since sXBL is applied using the localName (and the namespace) we need 
>> to apply the binding as soon as the element is created. This needs to 
>> be done synchronously
> Are bindings loaded synchronously at document load?  Or are they 
> expected to be loaded synchronously on-demand?

I'm not totally sure about this. The important part is that both the 
following works:

<p id="p" style="binding:url('test.xml#test')">Foo</p>
<script type="text/javascript">
// assuming the binding adds a test method

and assuming that the document has defined my:test to have a binding

var el = document.createElementNS(myns, "test");

 From a usage perspective it does not really matter if the binding 
document is loaded during load or only when needed. The important part 
that Mozilla and IE50 missed is that the interface of the bound element 
needs to be available all the time.

Received on Tuesday, 28 September 2004 17:33:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:02 UTC