1 <html xmlns=
"http://www.w3.org/1999/xhtml">
3 https://bugzilla.mozilla.org/show_bug.cgi?id=400705
6 <title>Test for Bug
400705</title>
7 <script type=
"text/javascript" src=
"/MochiKit/packed.js"></script>
8 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
10 <bindings xmlns=
"http://www.mozilla.org/xbl">
13 <field name=
"a">window.countera++
</field>
14 <field name=
"b">window.counterb++
</field>
20 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=400705">Mozilla Bug
400705</a>
21 <p id=
"display" style=
"-moz-binding: url(#test)"></p>
22 <div id=
"content" style=
"display: none">
26 <script class=
"testbody" type=
"text/javascript">
28 /** Test for Bug
400705 **/
29 SimpleTest.waitForExplicitFinish();
31 addLoadEvent(function() {
36 // Control to make sure fields are lazy and all
38 is(window.countera,
1,
"Should have evaluated field");
40 d.parentNode.removeChild(d);
41 is(window.counterb,
0,
"Should not evaluate field on binding teardown");