Re: SVG 1.2 questions: editable text

Hi Andreas,

Answering your comment archived at http://lists.w3.org/Archives/ 
Public/www-svg/2004Oct/0145.html

=====8<=====
* 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".
=====>8=====

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

=====8<=====
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 ...
=====>8=====

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
-- 
Antoine Quint — Fuchsia Design
SVG & Client-side XML Consulting
W3C SVG WG Invited Expert
http://fuchsia-design.com

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