Bug 12169

Summary: Add support for XHTML text processing within SVG
Product: WebKit Reporter: Nicholas Shanks <nickshanks>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Enhancement    
Priority: P4    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   

Description Nicholas Shanks 2007-01-08 15:23:43 PST
I would like to see some of the text support available to XHTML documents be made available to SVG too.
I suggest doing this by allowing all xhtml-namespaced inline elements within compound SVG+XHTML documents, e.g.

<svg xmlns="&svgNS;" xmlns:xhtml="&xhtmlNS;" version="1.1">
<text>This <xhtml:em>exciting</xhtml:em> text can <xhtml:br/>flow onto several lines!</text>
</svg>
Comment 1 Eric Seidel (no email) 2007-01-08 15:26:39 PST
Interesting.

We've certainly talked about going the other way (allowing SVG inline in HTML w/o namespacing), but not HTML inline in SVG.
Comment 2 Ian 'Hixie' Hickson 2007-01-08 16:21:02 PST
That would be invalid according to SVG, and I wouldn't want to suggest supporting that.

However, you could do this with <foreignObject>, where it would be valid per specs and already supported in other UAs.