Bug 16275 - Support contenteditable on SVG
Summary: Support contenteditable on SVG
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 523.x (Safari 3)
Hardware: Macintosh OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/ZEAwB/
Keywords:
Depends on:
Blocks: 15836
  Show dependency treegraph
 
Reported: 2007-12-03 03:40 PST by Eric Seidel (no email)
Modified: 2014-05-12 05:12 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2007-12-03 03:40:51 PST
Support SVG 1.2 editable="simple" attribute on <text>

This support is required by WICD 1.0:
http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-event-mapping.xhtml
Comment 1 Andreas Neumann 2008-01-21 06:28:00 PST
yes, this feature would be very useful for interactive SVG applications. This feature is currently being implemented in Opera 9.5. Editing SVG text with Javascript is complicated and requires a lot of scripting to ensure proper user experience.
Comment 2 Eric Seidel (no email) 2008-01-21 12:36:40 PST
We support editing already. :)  We just don't have a way to turn it on for SVG elements.  I wonder if adding the "contenteditable" attribute onto a <text> element would do the trick. :)
Comment 3 Dave Hyatt 2008-01-21 13:13:36 PST
Editing is mapped into style (-webkit-user-modify), so you can map this SVG editable attribute into that and get editing behavior.

Comment 4 Andreas Neumann 2008-01-22 12:06:07 PST
do you mean that I can already do editable SVG text as a content-author? If so, could you post a very small example I can use to start with?
Comment 5 Eric Seidel (no email) 2008-01-22 12:59:53 PST
The editing code is all HTML specific.  Necessary pieces are on HTMLElement.  It's not possible to enable this as a content author (yet).
Comment 6 Jeremy 2011-04-11 00:27:12 PDT
Any update on this? Simple editing support would be fantastic.
Comment 7 Eric Seidel (no email) 2011-04-11 06:20:00 PDT
http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-event-mapping.xhtml doesn't seem to mention anything about editing anymore.  Maybe I included the wrong URL in this report?
Comment 8 Eric Seidel (no email) 2011-04-11 08:30:48 PDT
http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-DOM-L3-event-subset-c.xhtml is supposedly the correct test case.
Comment 9 Eric Seidel (no email) 2011-04-11 08:31:57 PDT
http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-DOM-L3-event-subset-c.svg
is the actual SVG with the editable=simple
Comment 10 Dirk Schulze 2014-05-12 05:11:43 PDT
The contenteditable attribute is the way to make this possible. Sadly it just works when it is set on an HTML root element for SVG. We should support it in SVG natively.