Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!-- |
michael@0 | 2 | Any copyright is dedicated to the Public Domain. |
michael@0 | 3 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 4 | --> |
michael@0 | 5 | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink='http://www.w3.org/1999/xlink' font-size='16px'> |
michael@0 | 6 | <!-- |
michael@0 | 7 | This tests that elements that are not container elements do not render their |
michael@0 | 8 | children. |
michael@0 | 9 | --> |
michael@0 | 10 | <rect id='r' width='100%' height='100%' fill='red'/> |
michael@0 | 11 | <script xlink:href='nesting-invalid-01.js'/> |
michael@0 | 12 | <script><![CDATA[ |
michael@0 | 13 | for (var i = 0; i < es.length; i++) { |
michael@0 | 14 | document.documentElement.appendChild(makeGroup(i, false, es[i])); |
michael@0 | 15 | document.documentElement.appendChild(makeElement(es[i], { }, [makeGroup(i, true, es[i])])); |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | document.documentElement.removeChild(document.getElementById('r')); |
michael@0 | 19 | ]]></script> |
michael@0 | 20 | </svg> |