Bug 120527 Dialog fix to make default button not appear default while another button has focus

adding missing cdata markings
This commit is contained in:
timeless%mozdev.org 2005-09-20 21:44:33 +00:00
parent a741c7a433
commit df16362861

View File

@ -344,9 +344,11 @@
this.cancelDialog();
</handler>
<handler event="focus" phase="capturing">
<![CDATA[
var btn = this.getButton(this.defaultButton);
if (btn && !/Mac/.test(navigator.platform))
btn.setAttribute("default", event.originalTarget == btn || !(event.originalTarget instanceof Components.interfaces.nsIDOMXULButtonElement));
]]>
</handler>
</handlers>