Source code
Revision control
Copy as Markdown
Other Tools
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.2" width="500px" height="500px" viewBox="0 0 500 500">
<title>Drag and drop of SVG text selection from textArea to foreignObject</title>
<textArea x="10" y="10" width="480" height="90" font-size="20">Select part of this text and drag selection to the box below.
Content of selection should be copied once it's dropped in the box.</textArea>
<switch>
<foreignObject x="10" y="120" width="480" height="380" requiredExtensions="http://www.w3.org/1999/xhtml" xlink:href="016-1.xhtml"/>
<text x="10" y="150" font-size="20">Skip the test (foreignObject is not supported).</text>
</switch>
</svg>