W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2010

trusted property

From: Hallvord R. M. Steen <hallvord@opera.com>
Date: Wed, 03 Mar 2010 15:30:26 +0000
Message-ID: <20100303153026.oufzgbu2ggs4880g@staff.opera.com>
To: www-dom@w3.org
I'm not sure what the use case is for exposing a "trusted" property to  
normal scripts. It also seems rather draconian to say that "All other  
untrusted events must behave as if the Event.preventDefault() method  
had been called on that event". This comes right after a sentence  
saying "should not trigger default actions". So is this a "should" or  
a "must" requirement for an implementor?

(  
http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#trusted-events  
)

Also, it may need to say that setting properties directly on the event  
object should change event.trusted to false? E.g. some browsers let me  
set event.keyCode for a key event. Having done that the event is  
presumably no longer "trusted"?

-- 
Hallvord R. M. Steen
Core tester, Opera Software
Received on Wednesday, 3 March 2010 15:30:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:04 GMT