OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <svg><view id="indocument" class="indocument"></view></svg> |
| 5 <script> |
| 6 document.write("Accessing a SVGStyledElement's class attribute should not crash.
<br>\n"); |
| 7 |
| 8 var svgElement1 = document.createElementNS("http://www.w3.org/2000/svg", "view")
; |
| 9 svgElement1.setAttribute("class", "created"); |
| 10 var result1_1 = svgElement1.getAttribute("class"); |
| 11 var result1_2 = svgElement1.className; |
| 12 document.write("createElementNS() className is 'created', the actual class was '
" + result1_1 + "' and '" + result1_2 + "'.<br>\n"); |
| 13 |
| 14 var svgElement2 = document.getElementById("indocument"); |
| 15 var result2_1 = svgElement2.getAttribute("class"); |
| 16 var result2_2 = svgElement2.className; |
| 17 document.write("In document className is 'indocument', the actual class was '" +
result2_1 + "' and '" + result2_2 + "'.<br>\n"); |
| 18 |
| 19 if (window.testRunner) { |
| 20 testRunner.dumpAsText(); |
| 21 } |
| 22 </script> |
| 23 </body> |
| 24 </html> |
OLD | NEW |