2 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
3 <?xml-stylesheet href=
"/tests/SimpleTest/test.css" type=
"text/css"?>
5 https://bugzilla.mozilla.org/show_bug.cgi?id=418216
7 <window title=
"Mozilla Bug 418216"
8 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
9 <script type=
"application/javascript" src=
"/MochiKit/packed.js" />
10 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"/>
12 <!-- test results are displayed in the html:body -->
13 <body xmlns=
"http://www.w3.org/1999/xhtml">
14 <a href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=418216"
15 target=
"_blank">Mozilla Bug
418216</a>
18 <!-- test code goes here -->
19 <script type=
"application/javascript"><![CDATA[
21 /** Test for Bug
418216 **/
22 SimpleTest.waitForExplicitFinish();
24 var element = $(
"item");
25 $(
"container").removeChild($(
"item"));
26 $(
"broadcaster").removeAttribute(
"disabled");
27 $(
"container").appendChild(element);
28 is($(
"item").hasAttribute(
"disabled"), $(
"broadcaster").hasAttribute(
"disabled"));
39 <observes element=
"broadcaster" attribute=
"disabled"/>
44 <broadcaster id=
"broadcaster" disabled=
"true"/>