2007-05-03 16:20:17 +04:00
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
2011-06-21 16:19:35 +04:00
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
2007-05-03 16:20:17 +04:00
|
|
|
-->
|
2007-03-16 17:58:36 +03:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
|
|
|
|
onload="handleLoad(evt);">
|
2007-03-20 13:43:12 +03:00
|
|
|
|
2007-03-16 17:58:36 +03:00
|
|
|
<title>Testcase for getElementById finding <a> element</title>
|
2007-03-20 13:43:12 +03:00
|
|
|
|
|
|
|
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=320724 -->
|
|
|
|
|
2007-03-16 17:58:36 +03:00
|
|
|
<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>
|