summaryrefslogtreecommitdiffstats
path: root/layout/xul/crashtests/387033-1.xhtml
blob: 58325b1a7903da1f47cea9f0c4d3e60091b3cee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xbl="http://www.mozilla.org/xbl"
      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <head>
    <xbl:bindings>
      <xbl:binding id="test" extends="chrome://global/content/bindings/text.xml#text-label">
        <xbl:implementation>
          <xbl:property name="accessKey">
            <xbl:getter>
              <![CDATA[
                this.parentNode.parentNode.removeChild(this.parentNode);
                return "";
              ]]>
            </xbl:getter>
            <xbl:setter>
              <![CDATA[
                return val;
              ]]>
            </xbl:setter>
          </xbl:property>
        </xbl:implementation>
      </xbl:binding>
    </xbl:bindings>
  </head>
  <body>
    <xul:hbox>
      <xul:label value="foobar" style="-moz-binding: url(#test)"/>
    </xul:hbox>
  </body>
</html>