1 <svg xmlns="http://www.w3.org/2000/svg"> 2 <!-- Only valid svg subdocuments (enclosed by <svg xmlns="svgNS">) are allowed in fO documents. No renderers should be created for <g> and children --> 3 <foreignObject width="300" height="100"> 4 <html xmlns="http://www.w3.org/1999/xhtml"> 5 <p>This should not crash</p> 6 <g xmlns="http://www.w3.org/2000/svg"> 7 <text y="20">This should not be shown</text> 8 </g> 9 <g/> 10 </html> 11 </foreignObject> 12 </svg> 13