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