[Webkit-unassigned] [Bug 19917] [XBL] We need the ability to manage bindings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 7 01:00:53 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=19917





------- Comment #3 from jchaffraix at webkit.org  2008-07-07 01:00 PDT -------
(In reply to comment #2)
> (From update of attachment 22119 [edit])
> Why would a binding manager be global?  I think per-document was the right way
> to go.  Otherwise how do you load two different pages in two different tabs
> with same-named bindings?
> 

It will not matter whether the binding manager is global: a binding links a
bound element with a <binding> element, the name is only to fetch the resource.
We index the bindings' list with the bound element in the XBLBindingManager.
This ensure that it will be different per-document.

Furthermore, having a per-document binding manager is a restriction that is not
on the specification. For example, with a per-document binding manager, you
will not be able to do the following (which is right):

var element = document.createElement('p');
element.attachBinding('http://example.com');
document.getElementById('foobar').appendChild(element);


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list