Bug 1943761 - Add class alignment to the mozsearch analysis file. r=asuth
[gecko.git] / dom / svg / test / test_SVGStyleElement.xhtml
blob41d449dee539f9aab0eb60056b8b0961ea431901
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <!--
3 https://bugzilla.mozilla.org/show_bug.cgi?id=559024
4 -->
5 <head>
6 <title>Test SVGStyleElement</title>
7 <script src="/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
9 </head>
10 <body>
11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=559024">Mozilla Bug 559024</a>
12 <p id="display"></p>
13 <div id="content" style="display: none">
14 <svg xmlns="http://www.w3.org/2000/svg">
15 <style></style>
16 </svg>
17 </div>
18 <pre id="test">
19 <script type="application/javascript">
20 <![CDATA[
21 /** Test for Bug 559024 **/
22 var el = document.getElementsByTagNameNS("http://www.w3.org/2000/svg", "style")[0];
23 el.media = "ssss";
24 is(el.media, "ssss");
25 is(el.getAttributeNS("", "media"), "ssss");
26 el.title = "tttt";
27 is(el.title, "tttt");
28 is(el.getAttributeNS("", "title"), "tttt");
29 ]]>
30 </script>
31 </pre>
32 </body>
33 </html>