<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'
      xmlns:xbl='http://www.w3.org/ns/xbl'
      xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <head>
    <title>XBL 2.0 Test Suite: Handler test - text</title>
    <style type='text/css'>
    </style> 
    <xbl xmlns="http://www.w3.org/ns/xbl">
    <binding id="b1" element="#text-match-1">
      <handlers>
        <handler id="hand1" event="textInput" text="abcdef" >
          document.getElementById('head1').setAttribute("style", "background-color: green")
        </handler>
      </handlers>
    </binding>
    <binding id="b2" element="#text-match-2">
      <handlers>
        <handler id="hand2" event="textInput" text="123456">
          document.getElementById('head2').setAttribute("style", "background-color: green")
        </handler>
      </handlers>
    </binding>
    </xbl> 
  </head>
  <body>
    <h1 id="head1">Type in abcdef below and this background should change green</h1>
    <input id="text-match-1"/>
    <h1 id="head2">Type in 123456 below and this background should change green</h1>
    <input id="text-match-2"/>
  </body>
</html>
