Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/crashtests/deep-nesting.html - WPT Dashboard Interop Dashboard
<!doctype html>
<p>This test should not crash.</p>
<div></div>
<script>
let parent = document.querySelector('div');
let svg = document.createElementNS(svgNS, 'svg');
let last = svg;
for(let i = 0; i < 1024; i++) {
let g = document.createElementNS(svgNS, 'g');
last.appendChild(g);
last = g;
}
parent.appendChild(svg);
</script>