Re: Errata for Touch Events: preventDefault vs "cancel event"

SGTM, thanks for the attention to detail!

On Wed, Oct 29, 2014 at 6:14 PM, Patrick H. Lauke <redux@splintered.co.uk>
wrote:

> Just before the note, the spec reads
>>
>> " If the preventDefault method of touchstart or touchmove is called"
>>
>> as preventDefault is not the only way to cancel an event, I wonder if
>> this should be changed to
>>
>> "If the touchstart or touchmove events are cancelled"
>>
>> and perhaps include the definition we have in PE somewhere?
>>
>> "cancelled event
>> An event whose default action was prevented by means of
>> preventDefault(), returning false in an event handler, or other means as
>> defined by [DOM-LEVEL-3-EVENTS] and [HTML5]."
>>
>
> Actually, I've just seen that TE has a glossary section (right after the
> bit I was looking at, doh!), which also contains a definition of
> "preventDefault". Could I propose the above change, and then replacing the
> glossary entry for preventDefault with the above one for "cancelled event" ?
>
> This would also require copy tweaks in
>
> 5.4 "(see preventDefault)" > "(see cancelled event)"
>
> 5.5, 5.6 and 5.7 "If the preventDefault method is called on this event" >
> "If this event is cancelled"
>
> P
> --
> Patrick H. Lauke
>
> www.splintered.co.uk | https://github.com/patrickhlauke
> http://flickr.com/photos/redux/ | http://redux.deviantart.com
> twitter: @patrick_h_lauke | skype: patrick_h_lauke
>
>

Received on Thursday, 30 October 2014 01:47:06 UTC