Source code
Revision control
Copy as Markdown
Other Tools
<!--
Any copyright is dedicated to the Public Domain.
-->
onload="handleLoad(evt);">
<title>Testcase for getElementById finding <a> element</title>
<script type="application/ecmascript">
<![CDATA[
function handleLoad(event)
{
document.getElementById('a').setAttribute('fill', 'lime');
}
]]>
</script>
<a id="a" fill="red">
<rect width="100%" height="100%" fill="inherit"/>
</a>
</svg>