-<?xml version="1.0"?>\r
-<bindings xmlns="http://www.mozilla.org/xbl"\r
- xmlns:html="http://www.w3.org/1999/xhtml">\r
- <binding id="ulink">\r
- <handlers>\r
- <handler event="click" button="0"\r
- action="window.location=this.attributes.url.value;"/>\r
- <handler event="mouseover"\r
- action="window.status=this.attributes.url.value;"/>\r
- <handler event="mouseout"\r
- action="window.status=null;"/>\r
- </handlers>\r
- </binding>\r
-\r
- <binding id="image">\r
- <content>\r
- <html:img xbl:inherits="src=fileref"/>\r
- </content>\r
-\r
- <implementation>\r
- <constructor>\r
- var img = document.getAnonymousNodes(this)[0];\r
- var file = this.getAttribute("fileref");\r
- // HACK: using img.src=file 'inline' doesn't seem to work\r
- // but it does when called from a setTimeout()\r
- var f = function() { img.src = file; }\r
- setTimeout(f, 0);\r
- </constructor>\r
- </implementation>\r
- </binding>\r
-</bindings>\r
+<?xml version="1.0"?>
+<bindings xmlns="http://www.mozilla.org/xbl"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <binding id="ulink">
+ <handlers>
+ <handler event="click" button="0"
+ action="window.location=this.attributes.url.value;"/>
+ <handler event="mouseover"
+ action="window.status=this.attributes.url.value;"/>
+ <handler event="mouseout"
+ action="window.status=null;"/>
+ </handlers>
+ </binding>
+
+ <binding id="image">
+ <content>
+ <html:img xbl:inherits="src=fileref"/>
+ </content>
+
+ <implementation>
+ <constructor>
+ var img = document.getAnonymousNodes(this)[0];
+ var file = this.getAttribute("fileref");
+ // HACK: using img.src=file 'inline' doesn't seem to work
+ // but it does when called from a setTimeout()
+ var f = function() { img.src = file; }
+ setTimeout(f, 0);
+ </constructor>
+ </implementation>
+ </binding>
+</bindings>