Bug 16275
Summary: | Support contenteditable on SVG | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | a.neumann, jedahu, krit, timur.mehrvarz |
Priority: | P2 | ||
Version: | 523.x (Safari 3) | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
URL: | http://jsfiddle.net/ZEAwB/ | ||
Bug Depends on: | |||
Bug Blocks: | 15836 |
Eric Seidel (no email)
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Andreas Neumann
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.
Eric Seidel (no email)
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. :)
Dave Hyatt
Editing is mapped into style (-webkit-user-modify), so you can map this SVG editable attribute into that and get editing behavior.
Andreas Neumann
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?
Eric Seidel (no email)
The editing code is all HTML specific. Necessary pieces are on HTMLElement. It's not possible to enable this as a content author (yet).
Jeremy
Any update on this? Simple editing support would be fantastic.
Eric Seidel (no email)
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?
Eric Seidel (no email)
http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-DOM-L3-event-subset-c.xhtml is supposedly the correct test case.
Eric Seidel (no email)
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
Dirk Schulze
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.