<?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 - click-count</title>
    <style type='text/css'>
    </style> 
    <xbl xmlns="http://www.w3.org/ns/xbl">
    <binding id="b1" element="#title1">
     <handlers>
	<handler id="hand1" event="click" click-count="1">
		document.getElementById('title1').setAttribute("style", "background-color: green");
        </handler>
	<handler id="hand2" event="click" click-count="2">
         	 document.getElementById('title1').setAttribute("style", "color: white");
        </handler>
     </handlers>
    </binding>
    <binding id="b2" element="#title2">
     <handlers>
	<handler id="hand3" event="click" click-count="2 3">
          document.getElementById('title2').setAttribute("style", "background-color: green");
        </handler>
     </handlers>
    </binding>
    <binding id="b3" element="#title3">
     <handlers>
	<handler id="hand4" event="click" click-count="x y 2">
          document.getElementById('title3').setAttribute("style", "background-color: green");
        </handler>
     </handlers>
    </binding>
    <binding id="b4" element="#title4">
     <handlers>
	<handler id="hand5" event="click" click-count="0 abc z1 ">
          document.getElementById('title4').setAttribute("style", "background-color: red");
        </handler>
     </handlers>
    </binding>
    <binding id="b5" element="#title5">
     <handlers>
	<handler id="hand6" event="mouseover" click-count="1">
          document.getElementById('title5').setAttribute("style", "background-color: red");
        </handler>
     </handlers>
    </binding>
   </xbl>
  </head>
  <body>
   <h1 id="title1">Click this once and the background should change green, double-click the text should change white.</h1>
   <h1 id="title2">Double-click or triple click this and the background should change green</h1>
   <h1 id="title3">Double-click this and the background should change green</h1>
   <h1 id="title4">Nothing should happen when clicking this</h1>
   <h1 id="title5">Onmouseover should not do anyhting</h1>
  </body>
</html>
