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>
  </text>

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"/>
  </text>

If characters are typed, what colour do they become?

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

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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:26 GMT