W3C home > Mailing lists > Public > www-svg@w3.org > October 2005

Re: SVG 1.2 questions: editable text

From: Antoine Quint <ml@graougraou.com>
Date: Sun, 30 Oct 2005 12:19:32 +0100
To: www-svg@w3.org
Message-Id: <8EFB1F6E-42AF-4436-B122-704A0FBCAA73@graougraou.com>
Cc: SVG WG <w3c-svg-wg@w3.org>
Hi Andreas,

Answering your comment archived at http://lists.w3.org/Archives/ 

* should there also be an attribute indicating whether a text is
"selectable" (true|false)? There are cases where you want text elements
to react to events, but not be selectable. Setting "pointer-events" to
"none" also turns of the ability to react to mouse-events, such as
"onclick". I think, such an addition might be useful. Of course, setting
"selectable" to false would also turn off "editable".

It seems to me that the spec already covers this issue. Here is some
text from the latest internal draft:

Processing order for user interface events

The processing order for user interface events shall be as follows:

     * Event handlers assigned to the topmost graphics element under the
pointer (and the various ancestors of that graphics element via
potential event bubbling) receive the event first. If none of the
activation event handlers take an explicit action to prevent further
processing of the given event, then the event is passed on for:
... then hyperlinks ...
... then text selection ...

In other words, event listeners on pointer events can cancel the event,
which would disable text selection. If particular viewers do not honor
this sort of event canceling, then they have a bug.

Antoine Quint  Fuchsia Design
SVG & Client-side XML Consulting
W3C SVG WG Invited Expert

Received on Sunday, 30 October 2005 11:19:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:04 UTC