Re: SVG12: editable design

On Sunday, April 17, 2005, 11:59:08 PM, Bjoern wrote:

BH> Dear Scalable Vector Graphics Working Group,

BH>   In http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/text.html the
BH> editable text feature does not seem to define how editing operations
BH> are to be carried out. All the draft seems to say that implementations
BH> must somehow change the "text" of elements in some magical way.

BH> In particular, it is unclear how this interacts with descendant
BH> elements,

Well, it says they should be flattened. That seemed clear enough to us
at the time, and we have since clarified that it is flattened as per the
DOM.

BH> text selection and common user expectations.

In fact, it does. Earlier versions talked about specific keys, as you do
below;however things like home and end keys, PageUpand PageDown, are
specific to particular operating environments. So instead, responding to
comments, we removed mentions of specific keys and said

>> The functionality should use the normal key bindings that are used
>> for those tasks on the given platform.

BH> Please substantively revise this section such that this feature
BH> gurantess acceptable user experience

The language we have gives a user experience  consistent with the
platform.

BH>  and that editing operations
BH> yield in well-defined modifications to the document object model.

They do. Here is the new text regarding flattening of child elements:

>> If the text of an editable element is edited, and the element has
>> child elements, the contents of the edited element must first be
>> flattened. Flattening must have the same effect as the following
>> procedure: extract the text content of the edited element and it's
>> children, as defined in the textContent attribute of DOM Level 3 Core
>> [DOM3], and assign it to the edited element's textContent attribute.

Please let us know within two weeks if these changes do not resolve your
comment.

-- 
 Chris Lilley                    mailto:chris@w3.org
 Chair, W3C SVG Working Group
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG

Received on Monday, 31 October 2005 16:14:32 UTC