<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" onload="runTest()">
<script type="text/ecmascript"><![CDATA[
function runTest() {
var test = document.getElementById("test");
if(test.x.baseVal.numberOfItems == 0) {
var result = document.getElementById("result");
result.setAttribute("fill", "green");
}
}
]]></script>
<g>
<text id="test" x="1.2.3" y="20"></text>
<rect id="result" width="100" height="100" fill="red"/>
<text y="130">Above a green rectangle should be displayed.</text>
<text y="150">It tests that x="1.2.3" as length is not accepted. Bug 15464.</text>
</g>
</svg>