DOM/Web Forms 2.0: Difference between revisions

Jump to navigation Jump to search
m
Line 163: Line 163:
As a general rule of thumb (from Jonas Sicking), anonymous content can be done in XBL 1, but not implementation or event handlers.
As a general rule of thumb (from Jonas Sicking), anonymous content can be done in XBL 1, but not implementation or event handlers.


XBL 2 suffers from the same drawbacks.  CSS properties (binding) can be overridden.  HTML documents would have to include a processing instruction (<?xbl ?>) or the binding element.  The other option, using DOM and calling addBinding(), can be undone via removeBinding().
XBL 2 suffers from the same drawbacks.  CSS properties (binding) can be overridden.  HTML documents would have to include a processing instruction (<?xbl ?>) or the binding element.  Most critically, any XBL2 binding can be undone via the removeBinding() method, and there is no apparent way in XBL2 to prevent the binding from falling off the bound element.


=== DHTML Behaviors ===
=== DHTML Behaviors ===
Confirmed users
146

edits

Navigation menu