| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| <html> |
| <head> |
| <title>Test case for checking firstChild.nodeType of a document</title> |
| <style type="text/css"> |
| button {display:none;} |
| </style> |
| </head> |
| <body> |
| <p>There should be no RED on the page</p> |
| <button id='button'></button> |
| |
| <script type="text/javascript"> |
| if (document.getElementById('button').type !="submit") document.write("<p style=\"background-color:red;\">Wrong default type of BUTTON element</p>"); |
| </script> |
| </body> |
| </html> |