W3C home > Mailing lists > Public > www-svg@w3.org > March 2004

3.2 Editable Text Fields

From: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Date: Fri, 5 Mar 2004 14:53:40 +1100
To: www-svg@w3.org
Message-ID: <20040305035340.GC28342@mcc.id.au>

How will editable text elements which have tspans and trefs be handled?
For example:

  <text editable="true">
    Some <tspan fill="red">text</tspan>

If the cursor is just before the "t" of "text", will subsequently typed
characters be inserted at the fron of the tspan's text node of the end of
the text's first text node?

  <text editable="true">
    <tspan fill="red"/><tspan fill="green"/><tspan fill="blue"/>

If characters are typed, what colour do they become?

    <text id="t">Referenced text</text>
  <text editable="true">
    <tref xlink:href="#t"/>

What happens if you edit this text element?  Does the corresponding
def'd text get modified?  If so, what if the tref referred to a text
element in another document?  What (if anything) is the meaning of having
editable="true" on the text in the defs element?

Another issue is with xml:space.  In these examples there is the default
value of xml:space="default".  In this case, whenever the user types
a space into the editable text element, will no change occur to the
rendering of the text element?

Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922
Received on Thursday, 4 March 2004 22:53:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:00 UTC