blob: ac11f1960202342cbdfdc612d946f878c6ace499 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" height="200" width="400" onload="init()">
<style type="text/css">
.fail { fill: red; }
.pass { fill: green; }
</style>
<rect x="0" y="0" width="400" height="200" class="fail"/>
<script type="text/javascript">
function init() {
document.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'rect')[0].setAttribute('class', 'pass');
}
</script>
</svg>