How to embed SVG within foreignObject?

Velma27

New Member
MDN says:Any SVG elements within a foreignObject will not be drawn, except in the situation where a properly defined SVG subdocument with a proper xmlns attribute specification is embedded recursively.I've tried setting the proper namespaces to all subsequent elements without any succes.What i'm trying to accomplish is roughly this:\[code\]<svg> <foreignObject> some html text <svg width="10" height="10"><rect fill="red" width="10" height="10" /></svg> </foreignObject></svg>\[/code\]
 
Back
Top