layout/html/tests/frameset/bugs/bug5437.html
author jorendorff@mozilla.com
Mon, 19 Nov 2007 15:25:08 -0600
changeset 8097 74d4f075ce54b6e8a77a88dfaaa1d0bf2f665c58
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
Merging from cvs-trunk-mirror to mozilla-central.

<html><head></head><body>
<html> 
     <head> 
        <script> 
           function show() { 
              document.getElementById("div1").setAttribute("value","visible"); 
           } 

           function hide() { 
              document.getElementById("div1").setAttribute("value","hidden"); 
           } 
        </script> 

        <style> 
           div[id="div1"][value="hidden"] { 
              background-color: blue; 
              visibility: hidden; 
           } 

           div[id="div1"][value="visible"] { 
              background-color: red; 
           } 
        </style> 
     </head> 

     <body> 
        <div id="div1" value="hidden"> 
           this is text 
           <button> foo </button> 
           <iframe src="http://www.yahoo.com"> 
        </div> 
        <button onclick="show(this)">show</button> 
        <button onclick="hide(this)">hide</button> 
     </body> 
  </html>