| <script language='javascript'> |
| if (document.styleSheets[0].title == "basic" && |
| document.styleSheets[1].title == "basic") { |
| document.getElementById("q").title = "advanced"; |
| if (document.styleSheets[1].title == "advanced") |
| document.getElementById('result').innerHTML = 'SUCCESS'; |
| <link media="all" href="foo.css" rel="stylesheet" title="basic"> |
| <style type="text/css" id="q" title="basic"> |
| background-color: #66CCFF; |
| <body onload="runTest()"> |
| <p>Test setting of the title of stylesheets for both <link> and <style> elements. See bug #11824.</p> |
| <div id="result">FAILURE</div> |