A way of attaching bindings is through the <binding> 'element' attribute that represents a Selector to apply to the bound document.
Created attachment 22475 [details] First draft This is a first try: - we add the potential bindings to the bound document so that we could apply the Selector efficiently. - the binding attachment is postponed until the document is fully parsed (that is we just have to apply the Selector once). Comments are welcome.
Created attachment 22522 [details] Just add the 'element' attribute without the handling The approach taken was not the right one so I will just add the 'element' and postpone the 'element' handling for another bug.
Comment on attachment 22522 [details] Just add the 'element' attribute without the handling LGTM.
Landed in r35412.