| <svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml"> |
| <title>Adopting a <use> (from an inactive document) requests an external resource</title> |
| <h:link rel="match" href="reference/green-100x100.svg"/> |
| <script type="text/plain" template=""><![CDATA[ |
| <svg xmlns="http://www.w3.org/2000/svg"> |
| <use href="support/sprites.svg#green-rect"/> |
| </svg>]]> |
| </script> |
| <script> |
| let text = document.querySelector('script[template]').textContent; |
| let doc = new DOMParser().parseFromString(text, 'image/svg+xml'); |
| document.documentElement.appendChild(doc.documentElement); |
| </script> |
| </svg> |