Bug 12169 - Add support for XHTML text processing within SVG
Summary: Add support for XHTML text processing within SVG
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P4 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-08 15:23 PST by Nicholas Shanks
Modified: 2007-01-14 20:53 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.