<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function go() {
    var oSVGTextElement = document.createElementNS("http://www.w3.org/2000/svg", "text");
    var oSvgMaskElement = document.createElementNS("http://www.w3.org/2000/svg", "mask");
    var oSvgLengthList = oSVGTextElement.dy.baseVal;
    oSvgLengthList.appendItem(oSvgMaskElement.width.animVal);
    gc();
    oSvgLengthList.appendItem(oSvgMaskElement.width.animVal);
    gc();
    oSvgLengthList.removeItem(0);
    gc();
    oSvgLengthList.appendItem(oSvgMaskElement.width.animVal);
    gc(); 
}
</script>
</head>
<body onload="go()">
This test passes if it doesn't crash.
</body>
</html>
