<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-11684</id>
	<title>Nabble - w3.org - dom</title>
	<updated>2009-12-02T11:02:18Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/w3.org---dom-f11684.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/w3.org---dom-f11684.html" />
	<subtitle type="html">w3c Document Object Model (DOM). w3.org - dom home is &lt;a href=&quot;http://www.w3.org/DOM/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26614435</id>
	<title>Re: A few strawman proposals: Query Key State, Selector-based Mutation  Events Replacement</title>
	<published>2009-12-02T11:02:18Z</published>
	<updated>2009-12-02T11:02:18Z</updated>
	<author>
		<name>Doug Schepers-3</name>
	</author>
	<content type="html">Hi, Travis-
&lt;br&gt;&lt;br&gt;How about we write these up as Editor's Drafts, to get more precise 
&lt;br&gt;feedback, and consider adding them to the next charter?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Travis Leithead wrote (on 11/30/09 7:22 PM):
&lt;br&gt;&amp;gt; I’ve been meaning to do this for awhile, but over the extended holidays
&lt;br&gt;&amp;gt; I finally had the chance. I’ve quietly added a few strawman proposals
&lt;br&gt;&amp;gt; for next-generation events specs to consider:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; · Query Key Status – method for getting key state outside of the
&lt;br&gt;&amp;gt; eventing model
&lt;br&gt;&lt;br&gt;Yup, seems logical. &amp;nbsp;Obviously needs fleshing out.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; · Selector-based Mutation Events – follow-up proposal to Jonas’ concept
&lt;br&gt;&amp;gt; earlier this year (or last year??)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/2008/webapps/wiki/DOM3Events#Proposals&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2008/webapps/wiki/DOM3Events#Proposals&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Comments welcome—I have quite a few issues to resolve, but now I’ve at
&lt;br&gt;&amp;gt; least got the proposals out in a public place for inspection :-)
&lt;br&gt;&lt;br&gt;My high-level feedback is that both would benefit from a more explicit 
&lt;br&gt;requirements list, perhaps explaining some of the shortcomings of 
&lt;br&gt;Mutation Events for that one.
&lt;br&gt;&lt;br&gt;* watchSelector's SelectorElementCallback should be a list... there may 
&lt;br&gt;be a DOM mutation that simultaneously fits the match criteria (e.g., 
&lt;br&gt;inserting or removing large fragments)
&lt;br&gt;* Combine both methods into one?
&lt;br&gt;* notifyOnMatch is confusingly named... and could be a third value, &amp;quot;both&amp;quot;
&lt;br&gt;* make some ARIA examples (might help test fulfillment of use cases)
&lt;br&gt;&lt;br&gt;Regards-
&lt;br&gt;-Doug Schepers
&lt;br&gt;W3C Team Contact, SVG and WebApps WGs
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-few-strawman-proposals%3A-Query-Key-State%2C-Selector-based-Mutation--Events-Replacement-tp26584602p26614435.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26584602</id>
	<title>A few strawman proposals: Query Key State, Selector-based Mutation  Events Replacement</title>
	<published>2009-11-30T16:22:23Z</published>
	<updated>2009-11-30T16:22:23Z</updated>
	<author>
		<name>Travis Leithead-3</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;&lt;head&gt;&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;&lt;meta name=Generator content=&quot;Microsoft Word 14 (filtered medium)&quot;&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
&lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
&lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;/head&gt;&lt;body lang=EN-US link=blue vlink=purple&gt;&lt;div class=WordSection1&gt;&lt;p class=MsoNormal&gt;I&amp;#8217;ve been meaning to do this for awhile, but over the extended holidays I finally had the chance. I&amp;#8217;ve quietly added a few strawman proposals for next-generation events specs to consider:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l62 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Query Key Status &amp;#8211; method for getting key state outside of the eventing model&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l62 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Selector-based Mutation Events &amp;#8211; follow-up proposal to Jonas&amp;#8217; concept earlier this year (or last year??)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;a href=&quot;http://www.w3.org/2008/webapps/wiki/DOM3Events#Proposals&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2008/webapps/wiki/DOM3Events#Proposals&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;Comments welcome&amp;#8212;I have quite a few issues to resolve, but now I&amp;#8217;ve at least got the proposals out in a public place for inspection :-)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;-Travis&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-few-strawman-proposals%3A-Query-Key-State%2C-Selector-based-Mutation--Events-Replacement-tp26584602p26584602.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26573476</id>
	<title>Re: [whatwg] createEvent() in Web Workers?</title>
	<published>2009-11-30T03:52:04Z</published>
	<updated>2009-11-30T03:52:04Z</updated>
	<author>
		<name>Simon Pieters-3</name>
	</author>
	<content type="html">On Fri, 27 Nov 2009 17:02:00 +0100, Simon Pieters &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26573476&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simonp@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; An idea for creating events is to support [Constructor] on all event &amp;nbsp;
&lt;br&gt;&amp;gt; IDLs, which makes the createEvent method unnecessary.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maybe we could even make the arguments to the constructor be called to &amp;nbsp;
&lt;br&gt;&amp;gt; initFooEvent() directly, so instead of doing
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; var e = document.createEvent('MouseEvents');
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; e.initMouseEvent('click', ...);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; foo.dispatchEvent(e);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; you could do
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; foo.dispatchEvent(new MouseEvent('click', ...))
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've cc-ed www-dom since this is a suggestion for a change to DOM Events.
&lt;/div&gt;&lt;br&gt;Another thing we could change is to make all but the first arguments to &amp;nbsp;
&lt;br&gt;initFooEvent() optional and let them have sensible defaults, so that if &amp;nbsp;
&lt;br&gt;all you care about is the event type, you can include just the first &amp;nbsp;
&lt;br&gt;argument.
&lt;br&gt;&lt;br&gt;If the constructor is called with no arguments, then initFooEvent() would &amp;nbsp;
&lt;br&gt;not be called.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Simon Pieters
&lt;br&gt;Opera Software
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--whatwg--createEvent%28%29-in-Web-Workers--tp26544357p26573476.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26548693</id>
	<title>Re: [whatwg] createEvent() in Web Workers?</title>
	<published>2009-11-27T09:23:23Z</published>
	<updated>2009-11-27T09:23:23Z</updated>
	<author>
		<name>Jonathan Cook-2</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; An idea for creating events is to support [Constructor] on all event 
&lt;br&gt;&amp;gt; IDLs, which makes the createEvent method unnecessary.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maybe we could even make the arguments to the constructor be called to 
&lt;br&gt;&amp;gt; initFooEvent() directly, so instead of doing
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;var e = document.createEvent('MouseEvents');
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;e.initMouseEvent('click', ...);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;foo.dispatchEvent(e);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; you could do
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;foo.dispatchEvent(new MouseEvent('click', ...))
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've cc-ed www-dom since this is a suggestion for a change to DOM Events.
&lt;br&gt;&amp;gt;
&lt;/div&gt;I think that allowing creation of events via constructor is a good 
&lt;br&gt;idea. &amp;nbsp;It is simple in a way that doesn't detract from usefulness. &amp;nbsp;I 
&lt;br&gt;don't think it's a good idea to diverge far from how events are done in 
&lt;br&gt;the DOM for non-DOM uses. &amp;nbsp;That means that the DOM specs should lead the 
&lt;br&gt;way in terms of providing for how events work for browsers, available 
&lt;br&gt;objects like Web Workers, server-side javascript and anything else you 
&lt;br&gt;can think of.
&lt;br&gt;&lt;br&gt;The DOM Level 3 Events spec is specifying interface DocumentEvent that 
&lt;br&gt;document should implement, corresponding to feature &amp;quot;Events&amp;quot;. &amp;nbsp;It would 
&lt;br&gt;be nice if the DOM Level 3 DocumentEvent and Event interfaces were 
&lt;br&gt;super-classes of something also available for other implementations. &amp;nbsp;
&lt;br&gt;WorkerGlobalScope could implement this non-DOM eventing interface and 
&lt;br&gt;whatever constructors make sense to be available for Worker events 
&lt;br&gt;(ErrorEvent is the one that is already specified, as well as the 
&lt;br&gt;messaging ones). &amp;nbsp;Another example of an object that does eventing but 
&lt;br&gt;isn't DOM is the XmlHttpRequest object.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;J5
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I'm the type of person who &amp;quot;thinks out loud&amp;quot; and as such even in an 
&lt;br&gt;email conversation I can get long-winded and lengthily end up somewhere 
&lt;br&gt;that I later realize is much quicker to arrive at by direct means. &amp;nbsp;I 
&lt;br&gt;don't know whether the protocol of this list is that I ramble or that I 
&lt;br&gt;be as direct as possible and do thinking &amp;quot;off-list&amp;quot;. &amp;nbsp;I suspect that it 
&lt;br&gt;leans towards the latter and so I'm putting the rambling part below.
&lt;br&gt;=================================
&lt;br&gt;&lt;br&gt;That uncouples events from the document object and makes it easier to 
&lt;br&gt;make them part of specs that are not DOM-related, so it sounds like a 
&lt;br&gt;good idea to me. &amp;nbsp;I think you'd still want to support a no-arg 
&lt;br&gt;constructor and some form of mutators for initialization.
&lt;br&gt;&lt;br&gt;For use cases where separate initialization is not needed, I think the 
&lt;br&gt;syntax you're showing is very understandable and the terseness does not 
&lt;br&gt;detract from the usefulness.
&lt;br&gt;&lt;br&gt;For reasons related to use of reflection, it would still be nice to be 
&lt;br&gt;able to create an event by passing the name via string.
&lt;br&gt;&lt;br&gt;Could it make sense to have an independent event control object (factory 
&lt;br&gt;or singleton make sense to me) that could be used to create events via 
&lt;br&gt;reflection rather than explicit constructors? &amp;nbsp;It might be interesting 
&lt;br&gt;to be able to look-ahead at upcoming events that are not yet being 
&lt;br&gt;processed, or have built in event history. &amp;nbsp;Such an object could be a 
&lt;br&gt;window into existing eventing queues, as well as a place to implement a 
&lt;br&gt;createEvent method agnostically.
&lt;br&gt;&lt;br&gt;Under the hood the eventing object could be proxying to document or 
&lt;br&gt;workerglobalscope or window or whatever object or objects are actually 
&lt;br&gt;implementing eventing. &amp;nbsp;In that sense I guess it could be made an 
&lt;br&gt;interface that document and workerglobalscope implement and not even be 
&lt;br&gt;a first-class object.
&lt;br&gt;&lt;br&gt;I am now thinking a bit in circles here, because I'm back to suggesting 
&lt;br&gt;document.createEvent() as just fine :) &amp;nbsp;I hope my comments are useful.
&lt;br&gt;&lt;br&gt;I will try to summarize where I've ended up:
&lt;br&gt;&lt;br&gt;Objects implementing DOM Level 3 Event interface can be created via 
&lt;br&gt;constructor, equivalent to .creatEvent(foo), .initFooEvent(bar,baz,...)
&lt;br&gt;EventingInterface specifies createEvent method and maybe some other fun 
&lt;br&gt;stuff for looking at eventing queues
&lt;br&gt;Document (and possibly WorkerGlobalScope) to implement EventingInterface 
&lt;br&gt;(if people want the convenience of the coupling of Document with event 
&lt;br&gt;creation because of all the DOM Events)
&lt;br&gt;Consider Eventing object &amp;quot;eventing&amp;quot; which implements EventingInterface 
&lt;br&gt;to be used in place of Document in non-DOM environments
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;J5
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--whatwg--createEvent%28%29-in-Web-Workers--tp26544357p26548693.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544357</id>
	<title>Re: [whatwg] createEvent() in Web Workers?</title>
	<published>2009-11-27T08:02:00Z</published>
	<updated>2009-11-27T08:02:00Z</updated>
	<author>
		<name>Simon Pieters-3</name>
	</author>
	<content type="html">On Fri, 27 Nov 2009 16:50:21 +0100, Jonathan Cook &amp;nbsp;
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544357&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jonathan.j5.cook@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Simon Pieters wrote:
&lt;br&gt;&amp;gt;&amp;gt; There's ErrorEvent.initErrorEvent, and dispatchEvent is exposed in &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; workers, but there's no createEvent (because there's no document). Are &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; there use cases for sending events in a worker? Should we expose &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; createEvent somewhere? Should we remove initErrorEvent?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I would like to see createEvent in WebWorker. &amp;nbsp;My (theoretical) use case
&lt;br&gt;&amp;gt; would involve using custom eventing to load or set new message
&lt;br&gt;&amp;gt; handlers. &amp;nbsp;Flow would be something like this
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; window A creates worker 1
&lt;br&gt;&amp;gt; window A sends message to worker 1
&lt;br&gt;&amp;gt; worker 1 sends message to window A
&lt;br&gt;&amp;gt; window A sends message to worker 1
&lt;br&gt;&amp;gt; worker 1 creates an event &amp;quot;switch&amp;quot; in response to message, passing the
&lt;br&gt;&amp;gt; message in the event: createEvent(&amp;quot;switch&amp;quot;,message)
&lt;br&gt;&amp;gt; worker 1 switch event handler loads / sets new message handler, mutating
&lt;br&gt;&amp;gt; itself into worker 1 sub 1 and calls the new message handler on the
&lt;br&gt;&amp;gt; passed message
&lt;br&gt;&amp;gt; worker 1 sub 1 sends message to window A
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyone think this theoretical use case or some derivative is a useful
&lt;br&gt;&amp;gt; abstraction to aid in code organization and flow control? &amp;nbsp;I would think
&lt;br&gt;&amp;gt; since an eventing queue is specified for message handling that adding
&lt;br&gt;&amp;gt; custom events would not be much additional effort for implementers.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; initErrorEvent would seem to put the DOM Events Level 3 createEvent and
&lt;br&gt;&amp;gt; initEvent methods together. &amp;nbsp;Is there a reason that this approach was
&lt;br&gt;&amp;gt; chosen instead of mirroring DOM Events? &amp;nbsp;The simple answer seems to be
&lt;br&gt;&amp;gt; because there is no DOM :)
&lt;/div&gt;&lt;br&gt;An idea for creating events is to support [Constructor] on all event IDLs, &amp;nbsp;
&lt;br&gt;which makes the createEvent method unnecessary.
&lt;br&gt;&lt;br&gt;Maybe we could even make the arguments to the constructor be called to &amp;nbsp;
&lt;br&gt;initFooEvent() directly, so instead of doing
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; var e = document.createEvent('MouseEvents');
&lt;br&gt;&amp;nbsp; &amp;nbsp; e.initMouseEvent('click', ...);
&lt;br&gt;&amp;nbsp; &amp;nbsp; foo.dispatchEvent(e);
&lt;br&gt;&lt;br&gt;you could do
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; foo.dispatchEvent(new MouseEvent('click', ...))
&lt;br&gt;&lt;br&gt;&lt;br&gt;I've cc-ed www-dom since this is a suggestion for a change to DOM Events.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Simon Pieters
&lt;br&gt;Opera Software
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--whatwg--createEvent%28%29-in-Web-Workers--tp26544357p26544357.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518657</id>
	<title>Minutes, DOM3 Events, 18 Nov 2009</title>
	<published>2009-11-25T11:16:13Z</published>
	<updated>2009-11-25T11:16:13Z</updated>
	<author>
		<name>Doug Schepers-3</name>
	</author>
	<content type="html">Hi, DOM3 Events fans-
&lt;br&gt;&lt;br&gt;The minutes for the DOM3 Events telcon of 18 Nov 2009:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.w3.org/2009/11/18-webapps-minutes.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2009/11/18-webapps-minutes.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Or as text below:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; [1]W3C
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[1] &lt;a href=&quot;http://www.w3.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - DRAFT -
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web Applications Working Group Teleconference
&lt;br&gt;&lt;br&gt;18 Nov 2009
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; See also: [2]IRC log
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[2] &lt;a href=&quot;http://www.w3.org/2009/11/18-webapps-irc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2009/11/18-webapps-irc&lt;/a&gt;&lt;br&gt;&lt;br&gt;Attendees
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Present
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[Microsoft], [IPcaller], Shepazu
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Regrets
&lt;br&gt;&amp;nbsp; &amp;nbsp; Chair
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SV_MEETING_CHAIR
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Scribe
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Travis
&lt;br&gt;&lt;br&gt;Contents
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * [3]Topics
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * [4]Summary of Action Items
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; _________________________________________________________
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;trackbot&amp;gt; Date: 18 November 2009
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Travis: Talked to some folks about element-level resize (layout
&lt;br&gt;&amp;nbsp; &amp;nbsp; engineers) and based on layout complexity and potential spec
&lt;br&gt;&amp;nbsp; &amp;nbsp; vagueness (plus other browsers don't support this), I'd like to not
&lt;br&gt;&amp;nbsp; &amp;nbsp; spec this behavior as part of DOM L3 Events.
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... Suggested change to spec for resize: proximal event target =
&lt;br&gt;&amp;nbsp; &amp;nbsp; Window (only)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... Wanting to ensure Wiki access to create strawman proposal for
&lt;br&gt;&amp;nbsp; &amp;nbsp; Faster Mutation Events (discussed with Jonas at TPAC 2009).
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... verified that I do have editing access :)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... Got feedback from Microsoft's Office Web Companions: they wanted
&lt;br&gt;&amp;nbsp; &amp;nbsp; to have a keyboard language hint for internationalization features
&lt;br&gt;&amp;nbsp; &amp;nbsp; (spell/grammer).
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... Makes more sense for compositionend events (which tend to be
&lt;br&gt;&amp;nbsp; &amp;nbsp; langauge specific).
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; shepazu: Side conversation on shortcomings of not having physical
&lt;br&gt;&amp;nbsp; &amp;nbsp; key layout information.
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... (re-)discovered keyValues for copy/paste/cut, which solves some
&lt;br&gt;&amp;nbsp; &amp;nbsp; common use cases.
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... 2 key down sequence: CTRL keyValue + C [key], results in a
&lt;br&gt;&amp;nbsp; &amp;nbsp; KeyDown{keyValue:&amp;quot;Control&amp;quot;}, KeyDown{keyValue:&amp;quot;Copy&amp;quot;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Travis: &amp;quot;Labled keys&amp;quot; on my keyboard (Control Key combos):
&lt;br&gt;&amp;nbsp; &amp;nbsp; SelectAll, Find, Cut, Copy, Paste, Bold, Underline, Italic
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... Non-Function keys (share keyspace as F1-F12): Help, Undo, Redo,
&lt;br&gt;&amp;nbsp; &amp;nbsp; New, Open, Close, Reply, Fwd, Send, Spell, Save, Print
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; (Travis/Olli to think about this)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Last topic: DOMActivate...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Scenario-- user tabs to a link and press enter/space. Event sequence
&lt;br&gt;&amp;nbsp; &amp;nbsp; is {KeyboardEvent -&amp;gt; MouseEvent (click) -&amp;gt; Event (DOMActivate).
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; scribe: So this is legacy behavior.
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... We can't change this.
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... It seems like DOMActivate and click have roughly the same
&lt;br&gt;&amp;nbsp; &amp;nbsp; meaning.
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... I'll be radical: Let's consider deprecating (like the mutation
&lt;br&gt;&amp;nbsp; &amp;nbsp; events) DOMActivate. In its place, make 'click' the new DOMActivate!
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; shepazu: We need to run this by the accessibility community to make
&lt;br&gt;&amp;nbsp; &amp;nbsp; sure we're not missing anything.
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... Intuition tells me that deprecating DOMActivate will simplify
&lt;br&gt;&amp;nbsp; &amp;nbsp; web application development and actually make it simpler to make
&lt;br&gt;&amp;nbsp; &amp;nbsp; accessible web applications.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;smaug&amp;gt; [5]&lt;a href=&quot;http://www.w3.org/TR/progress-events/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/progress-events/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[5] &lt;a href=&quot;http://www.w3.org/TR/progress-events/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/progress-events/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;smaug&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; [6]&lt;a href=&quot;http://mxr.mozilla.org/mozilla-central/source/content/base/src/ns&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mxr.mozilla.org/mozilla-central/source/content/base/src/ns&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Document.cpp#6145
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[6] 
&lt;br&gt;&lt;a href=&quot;http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsDocument.cpp#6145&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsDocument.cpp#6145&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;shepazu&amp;gt; trackbot, end telcon
&lt;br&gt;&lt;br&gt;Summary of Action Items
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; [End of minutes]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; _________________________________________________________
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Minutes%2C-DOM3-Events%2C-18-Nov-2009-tp26518657p26518657.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518059</id>
	<title>Re: Thoughts on DOMActivate</title>
	<published>2009-11-25T10:36:40Z</published>
	<updated>2009-11-25T10:36:40Z</updated>
	<author>
		<name>Olli Pettay</name>
	</author>
	<content type="html">On 11/19/09 6:21 PM, Travis Leithead wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; As discussed on the recent working group call, I mentioned that I needed
&lt;br&gt;&amp;gt; to do some investigation into DOMActivate.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (Attached are a few HTM files that demo the points made below.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Activate.htm tests the following types of elements that might/could fire
&lt;br&gt;&amp;gt; DOMActivate:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. Focusable elements
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;div tabindex=&amp;quot;1&amp;quot;&amp;gt;Some block content&amp;lt;/div&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2. Buttons (was mentioned explicitly)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;div&amp;gt;&amp;lt;button&amp;gt;A button to click on&amp;lt;/button&amp;gt;&amp;lt;/div&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 3. Anchors (sans href attribute)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;p&amp;gt;&amp;lt;a&amp;gt;A link to click on (sans href set)&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 4. Anchors (with href attribute)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;javascript:void&amp;quot;&amp;gt;Another link to click on&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Per Firefox Testing:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Using MouseClicks
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1&amp;gt; 'click'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2&amp;gt; 'click', 'DOMActivate'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 3&amp;gt; 'click'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 4&amp;gt; 'click', 'DOMActivate'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Using the Keyboard
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1&amp;gt; 'keydown'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2&amp;gt; 'keydown', 'click', 'DOMActivate'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 3&amp;gt; n/a (not default focusable)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 4&amp;gt; 'keydown', 'click', 'DOMActivate'
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Actually, IIRC, it is keypress which fires click.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hypothetically, if the standard deprecates 'DOMActivate' as has been
&lt;br&gt;&amp;gt; discussed, These two scenarios would look like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Using MouseClicks (click for DOMActivate)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1&amp;gt; 'click'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2&amp;gt; 'click'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 3&amp;gt; 'click'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 4&amp;gt; 'click'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Using the Keyboard (click for DOMActivate)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1&amp;gt; 'keydown'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2&amp;gt; 'keydown', 'click'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 3&amp;gt; n/a (not default focusable)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 4&amp;gt; 'keydown', 'click'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) In cases where you use the keyboard or the mouse to perform an
&lt;br&gt;&amp;gt; activation (cases 2 and 4) click can be used fully in place of
&lt;br&gt;&amp;gt; DOMActivate with no issues. It will also be triggered for
&lt;br&gt;&amp;gt; non-activations which could be an issue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2) In cases where you wanted to detect that an activation behavior was
&lt;br&gt;&amp;gt; about to be triggered, you can no longer distinguish between a regular
&lt;br&gt;&amp;gt; click and a click that is a result of an activation. E.g., when using
&lt;br&gt;&amp;gt; the mouse as your input device you can't tell when an activation
&lt;br&gt;&amp;gt; behavior will occur for anything...
&lt;/div&gt;I'm not quite sure what you mean here.
&lt;br&gt;If there is DOMActivate, some event listener could call preventDefault 
&lt;br&gt;on that, the similar way as with click.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For (2) this could be considered a &amp;quot;good thing&amp;quot; or a &amp;quot;bad thing&amp;quot;. It
&lt;br&gt;&amp;gt; could be considered good if you want to abstract away the concept of
&lt;br&gt;&amp;gt; &amp;quot;activate&amp;quot; to that web apps don't need to care about it--they handle
&lt;br&gt;&amp;gt; everything through 'click'. It could be a bad thing if you feel that a
&lt;br&gt;&amp;gt; web app should know when some &amp;quot;activation&amp;quot; happens.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For buttons, radio buttons, checkboxes, etc., the activation behavior
&lt;br&gt;&amp;gt; seems rather redundant, since event handlers for 'click' are going to
&lt;br&gt;&amp;gt; check the state of the element themselves (this.value or
&lt;br&gt;&amp;gt; this.checked)--Canceling the 'click' event in these scenarios already
&lt;br&gt;&amp;gt; revert the changed value (has identical behavior as DOMActivate in these
&lt;br&gt;&amp;gt; scenarios).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For links, there's already a catch-all that can (and is) used to stop
&lt;br&gt;&amp;gt; the default value of the activation--even after DOMActivate has
&lt;br&gt;&amp;gt; successfully completed--and that is 'beforeunload'.
&lt;/div&gt;What is wrong with adding 'click' listener to window? That
&lt;br&gt;would catch all the click events and could call preventDefault()
&lt;br&gt;(and maybe stopPropagation() if needed, depends on the phase the 
&lt;br&gt;listener was added to).
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; An additional test is attached [activate2.htm] for showing that
&lt;br&gt;&amp;gt; beforeunload can be used in place of DOMActivate to stop
&lt;br&gt;&amp;gt; navigations--The drawback is that to use it, a dialog is displayed to
&lt;br&gt;&amp;gt; the user (no silent link blocking--which may be a good thing from a
&lt;br&gt;&amp;gt; user-perspective anyway).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I remain open to scenarios that prove the need for DOMActivate, but seem
&lt;br&gt;&amp;gt; to find that it's largely irrelevant (except for legacy dependencies, of
&lt;br&gt;&amp;gt; course).
&lt;br&gt;&amp;gt;
&lt;/div&gt;It is indeed difficult to find good real-world use cases for 
&lt;br&gt;DOMActivate. click works usually just well enough.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-Olli
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Thoughts-on-DOMActivate-tp26429274p26518059.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26429274</id>
	<title>Thoughts on DOMActivate</title>
	<published>2009-11-19T08:21:03Z</published>
	<updated>2009-11-19T08:21:03Z</updated>
	<author>
		<name>Travis Leithead-3</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;&lt;head&gt;&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;&lt;meta name=Generator content=&quot;Microsoft Word 14 (filtered medium)&quot;&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
&lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
&lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;/head&gt;&lt;body lang=EN-US link=blue vlink=purple&gt;&lt;div class=WordSection1&gt;&lt;p class=MsoNormal&gt;As discussed on the recent working group call, I mentioned that I needed to do some investigation into DOMActivate. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;(Attached are a few HTM files that demo the points made below.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;Activate.htm tests the following types of elements that might/could fire DOMActivate:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;1. Focusable elements&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp; &amp;lt;div tabindex=&amp;quot;1&amp;quot;&amp;gt;Some block content&amp;lt;/div&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;2. Buttons (was mentioned explicitly)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&amp;lt;button&amp;gt;A button to click on&amp;lt;/button&amp;gt;&amp;lt;/div&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;3. Anchors (sans href attribute)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a&amp;gt;A link to click on (sans href set)&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;4. Anchors (with href attribute)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;javascript:void&amp;quot;&amp;gt;Another link to click on&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;Per Firefox Testing:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;Using MouseClicks&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;1&amp;gt; 'click'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;2&amp;gt; 'click', 'DOMActivate'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;3&amp;gt; 'click'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;4&amp;gt; 'click', 'DOMActivate'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;Using the Keyboard&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;1&amp;gt; 'keydown'&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;2&amp;gt; 'keydown', 'click', 'DOMActivate'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;3&amp;gt;&amp;nbsp; n/a (not default focusable)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;4&amp;gt; 'keydown', 'click', 'DOMActivate'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;Hypothetically, if the standard deprecates 'DOMActivate' as has been discussed, These two scenarios would look like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;Using MouseClicks (click for DOMActivate)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;1&amp;gt; 'click'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;2&amp;gt; 'click'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;3&amp;gt; 'click'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;4&amp;gt; 'click'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;Using the Keyboard (click for DOMActivate)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;1&amp;gt; 'keydown'&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;2&amp;gt; 'keydown', 'click'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;3&amp;gt;&amp;nbsp; n/a (not default focusable)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;4&amp;gt; 'keydown', 'click'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;So, &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;1) In cases where you use the keyboard or the mouse to perform an activation (cases 2 and 4) click can be used fully in place of DOMActivate with no issues. It will also be triggered for non-activations which could be an issue.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;2) In cases where you wanted to detect that an activation behavior was about to be triggered, you can no longer distinguish between a regular click and a click that is a result of an activation. E.g., when using the mouse as your input device you can't tell when an activation behavior will occur for anything... &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;For (2) this could be considered a &amp;quot;good thing&amp;quot; or a &amp;quot;bad thing&amp;quot;. It could be considered good if you want to abstract away the concept of &amp;quot;activate&amp;quot; to that web apps don't need to care about it--they handle everything through 'click'. It could be a bad thing if you feel that a web app should know when some &amp;quot;activation&amp;quot; happens. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;For buttons, radio buttons, checkboxes, etc., the activation behavior seems rather redundant, since event handlers for 'click' are going to check the state of the element themselves (this.value or this.checked)--Canceling the 'click' event in these scenarios already revert the changed value (has identical behavior as DOMActivate in these scenarios).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;For links, there's already a catch-all that can (and is) used to stop the default value of the activation--even after DOMActivate has successfully completed--and that is 'beforeunload'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;An additional test is attached [activate2.htm] for showing that beforeunload can be used in place of DOMActivate to stop navigations--The drawback is that to use it, a dialog is displayed to the user (no silent link blocking--which may be a good thing from a user-perspective anyway).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=MsoNormal style='margin-left:.25in;text-autospace:none'&gt;&lt;span style='font-size:9.0pt;font-family:Consolas'&gt;I remain open to scenarios that prove the need for DOMActivate, but seem to find that it's largely irrelevant (except for legacy dependencies, of course).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;ï»¿&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
    
&lt;/head&gt;
&lt;body&gt;
 
&lt;/body&gt;
   &lt;div tabindex=&quot;1&quot;&gt;Some block content&lt;/div&gt;
   &lt;div&gt;&lt;button&gt;A button to click on&lt;/button&gt;&lt;/div&gt;
   &lt;p&gt;&lt;a target=&quot;_top&quot;&gt;A link to click on (sans href set)&lt;/a&gt;&lt;/p&gt;
   &lt;p&gt;&lt;a href=&quot;#&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Another link to click on&lt;/a&gt;&lt;/p&gt;
   &lt;code&gt;&lt;/code&gt;
&lt;/html&gt;
&lt;br /&gt;ï»¿&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
    
&lt;/head&gt;
&lt;body&gt;
 
&lt;/body&gt;
   &lt;div tabindex=&quot;1&quot;&gt;Some block content&lt;/div&gt;
   &lt;div&gt;&lt;button&gt;A button to click on&lt;/button&gt;&lt;/div&gt;
   &lt;p&gt;&lt;a target=&quot;_top&quot;&gt;A link to click on (sans href set)&lt;/a&gt;&lt;/p&gt;
   &lt;p&gt;&lt;a href=&quot;http://www.bing.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Another link to click on (Bing)&lt;/a&gt;&lt;/p&gt;
   &lt;code&gt;&lt;/code&gt;
&lt;/html&gt;
&lt;br /&gt;ï»¿&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;input type=&quot;checkbox&quot; /&gt;
  
&lt;/body&gt;
&lt;/html&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Thoughts-on-DOMActivate-tp26429274p26429274.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26307645</id>
	<title>Belated regrets...</title>
	<published>2009-11-11T12:03:05Z</published>
	<updated>2009-11-11T12:03:05Z</updated>
	<author>
		<name>Travis Leithead-3</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;&lt;head&gt;&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;&lt;meta name=Generator content=&quot;Microsoft Word 14 (filtered medium)&quot;&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
&lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
&lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;/head&gt;&lt;body lang=EN-US link=blue vlink=purple&gt;&lt;div class=WordSection1&gt;&lt;p class=MsoNormal&gt;I apologize for missing today&amp;#8217;s telecon. I have goals this coming week to deliver on several of my DOM Events actions items so that we can start to close in on CR.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;Sorry for the inconvenience.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=MsoNormal&gt;-Travis&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Belated-regrets...-tp26307645p26307645.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26225574</id>
	<title>Key Identifiers</title>
	<published>2009-11-05T14:47:55Z</published>
	<updated>2009-11-05T14:47:55Z</updated>
	<author>
		<name>Øistein E. Andersen-4</name>
	</author>
	<content type="html">According to a note in the draft, ‘the “keydown” and “keyup” &amp;nbsp;
&lt;br&gt;events are traditionally associated with detecting a physical key &amp;nbsp;
&lt;br&gt;rather than a character value’, but the current model does not seem &amp;nbsp;
&lt;br&gt;to allow a physical key to be detected.
&lt;br&gt;&lt;br&gt;For some use cases, what matters is the physical position of a key, &amp;nbsp;
&lt;br&gt;irrespective of keyboard layout, and not the character produced when a &amp;nbsp;
&lt;br&gt;particular keyboard layout is active. &amp;nbsp;For instance, the MacOS X &amp;nbsp;
&lt;br&gt;Widget ‘Tastiera’ [1] maps keys to piano keys; for this &amp;nbsp;
&lt;br&gt;application, a Q on a QWERTY keyboard is equivalent to an A on a &amp;nbsp;
&lt;br&gt;French (AZERTY) keyboard, to an Й on an Old Russian (ЙІУКЕН) &amp;nbsp;
&lt;br&gt;keyboard, etc., but DOM Events does no seem to provide a unique &amp;nbsp;
&lt;br&gt;identifier corresponding to the physical key variously producing a Q, &amp;nbsp;
&lt;br&gt;an A, an Й, etc.
&lt;br&gt;&lt;br&gt;Mac OS X Cocoa's NSEvent (for the sake of a concrete example) provides &amp;nbsp;
&lt;br&gt;‘charactersIgnoringModifiers’ similar to DOM Events' &amp;nbsp;
&lt;br&gt;KeyboardEvent.key (though it uses unescaped Unicode characters in the &amp;nbsp;
&lt;br&gt;returned string, which seems preferable, but that is a different &amp;nbsp;
&lt;br&gt;discussion), but also ‘keyCode’ which identifies a physical key by &amp;nbsp;
&lt;br&gt;means of a hardware-independent, virtual key code (probably inherited &amp;nbsp;
&lt;br&gt;from ADB). &amp;nbsp;Other platforms presumably have similar functionality, and &amp;nbsp;
&lt;br&gt;it would be great if an attribute allowing a physical key to be &amp;nbsp;
&lt;br&gt;identified could be added to DOM Events as well. An existing set of &amp;nbsp;
&lt;br&gt;scan codes could be adopted, or a more systematic area/row/column &amp;nbsp;
&lt;br&gt;enumeration scheme could be envisaged.
&lt;br&gt;&lt;br&gt;***
&lt;br&gt;&lt;br&gt;This is somewhat related to a WebKit bug on keyup/keydown events and &amp;nbsp;
&lt;br&gt;dead keys [2]. &amp;nbsp;The DOM Events draft suggests that dead keys should be &amp;nbsp;
&lt;br&gt;represented by Unicode combining characters, which may well be the &amp;nbsp;
&lt;br&gt;best solution available; it might be worth pointing out, though, that &amp;nbsp;
&lt;br&gt;the two concepts are different in that a dead key is pressed before &amp;nbsp;
&lt;br&gt;the corresponding letter key whereas a combining character comes after &amp;nbsp;
&lt;br&gt;the corresponding letter (i.e., naïve would be typed na¨ive with ¨ &amp;nbsp;
&lt;br&gt;being a dead key, but represented as nai¨ve in Unicode with ¨ being a &amp;nbsp;
&lt;br&gt;combining diacritic).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Øistein E. Andersen
&lt;br&gt;&lt;br&gt;&lt;br&gt;[1] &amp;lt;&lt;a href=&quot;http://coq.no/widget/tastiera/en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://coq.no/widget/tastiera/en&lt;/a&gt;&amp;gt;
&lt;br&gt;[2] &amp;lt;&lt;a href=&quot;https://bugs.webkit.org/show_bug.cgi?id=30652&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.webkit.org/show_bug.cgi?id=30652&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Key-Identifiers-tp26225574p26225574.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26177010</id>
	<title>Re: [whatwg] focus change inside keypress event handler</title>
	<published>2009-11-03T01:23:28Z</published>
	<updated>2009-11-03T01:23:28Z</updated>
	<author>
		<name>Michael A. Puls II</name>
	</author>
	<content type="html">On Tue, 03 Nov 2009 03:26:05 -0500, Michael A. Puls II &amp;nbsp;
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26177010&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shadow2531@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, 29 Oct 2009 21:58:29 -0400, Michael A. Puls II &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26177010&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shadow2531@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'll put together a new description with the changes to see if sounds &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; good.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; O.K., this description might be better and sounds more like what Firefox &amp;nbsp;
&lt;br&gt;&amp;gt; does for compat with the net:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -------
&lt;br&gt;&amp;gt; Fire 'keydown' first.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The default action for 'keydown' is to set the acceptKeypress flag to &amp;nbsp;
&lt;br&gt;&amp;gt; true. Using preventDefault() (either explicitly or implicitly through &amp;nbsp;
&lt;br&gt;&amp;gt; return false) prevents the default action and results in the &amp;nbsp;
&lt;br&gt;&amp;gt; acceptKeypress flag remaining false.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Changing the focus from one object to another inside the 'keydown' &amp;nbsp;
&lt;br&gt;&amp;gt; handler changes the current Context Object (what the action will be &amp;nbsp;
&lt;br&gt;&amp;gt; performed on) for the following 'keypress' handler.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; After the 'keydown' handler runs, fire 'keypress'.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The default action for 'keypress' is to allow the keypress if the &amp;nbsp;
&lt;br&gt;&amp;gt; acceptKeypress flag is true.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If acceptKeypress is not true or if preventDefault() is called in the &amp;nbsp;
&lt;br&gt;&amp;gt; 'keypress' handler (either explicitly or implicitly through return &amp;nbsp;
&lt;br&gt;&amp;gt; false), then the keypress is not allowed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If the keypress is allowed then perform the action on the current &amp;nbsp;
&lt;br&gt;&amp;gt; Context Object. The action could be text insertion, text deletion, &amp;nbsp;
&lt;br&gt;&amp;gt; scrolling etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If the keypress is not allowed, then do not perform the action unless &amp;nbsp;
&lt;br&gt;&amp;gt; the UA does not allow preventing the action, which in that case, perform &amp;nbsp;
&lt;br&gt;&amp;gt; the action.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Note that a focus change inside a 'keypress' handler does not change the &amp;nbsp;
&lt;br&gt;&amp;gt; current Context Object for the keypress.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If the a key is being held down and Repeat Processing is supported, &amp;nbsp;
&lt;br&gt;&amp;gt; process the above over and over. (e.g. keydown -&amp;gt; keyup -&amp;gt; keydown -&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; keyup)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When the key is finally released, fire 'keyup'.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, note that if alert(), confirm() or prompt() is used inside a &amp;nbsp;
&lt;br&gt;&amp;gt; 'keydown' handler and or inside a 'keypress' handler, whether 'keyup' &amp;nbsp;
&lt;br&gt;&amp;gt; fires varies between implementations.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also note that alert(), confirm(), prompt(), setTimeout and &amp;nbsp;
&lt;br&gt;&amp;gt; setInterval() inside the &amp;nbsp;'keydown' , 'keypress' and 'keyup' handlers &amp;nbsp;
&lt;br&gt;&amp;gt; may result in some code inside the handlers running in a different order &amp;nbsp;
&lt;br&gt;&amp;gt; than 'keydown' -&amp;gt; 'keypress' -&amp;gt; 'keyup'.
&lt;br&gt;&amp;gt; -------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That's how Firefox appears to work, in my words, from the outside &amp;nbsp;
&lt;br&gt;&amp;gt; looking in.
&lt;/div&gt;&lt;br&gt;I should also note that in the 'keydown' handler, if a focus change &amp;nbsp;
&lt;br&gt;happens *after* an alert(), the focus change will not change the context &amp;nbsp;
&lt;br&gt;for 'keypress' as 'keypress' will have already fired before the focus &amp;nbsp;
&lt;br&gt;change happens, which probably makes my &amp;quot;After the 'keydown' handler runs, &amp;nbsp;
&lt;br&gt;fire 'keypress'&amp;quot; part not entire accurate as far as &amp;quot;After&amp;quot; goes.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/focus-change-inside-keypress-event-handler-tp26088032p26177010.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26176357</id>
	<title>Re: [whatwg] focus change inside keypress event handler</title>
	<published>2009-11-03T00:26:05Z</published>
	<updated>2009-11-03T00:26:05Z</updated>
	<author>
		<name>Michael A. Puls II</name>
	</author>
	<content type="html">On Thu, 29 Oct 2009 21:58:29 -0400, Michael A. Puls II &amp;nbsp;
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26176357&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shadow2531@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I'll put together a new description with the changes to see if sounds &amp;nbsp;
&lt;br&gt;&amp;gt; good.
&lt;br&gt;&lt;br&gt;O.K., this description might be better and sounds more like what Firefox &amp;nbsp;
&lt;br&gt;does for compat with the net:
&lt;br&gt;&lt;br&gt;-------
&lt;br&gt;Fire 'keydown' first.
&lt;br&gt;&lt;br&gt;The default action for 'keydown' is to set the acceptKeypress flag to &amp;nbsp;
&lt;br&gt;true. Using preventDefault() (either explicitly or implicitly through &amp;nbsp;
&lt;br&gt;return false) prevents the default action and results in the &amp;nbsp;
&lt;br&gt;acceptKeypress flag remaining false.
&lt;br&gt;&lt;br&gt;Changing the focus from one object to another inside the 'keydown' handler &amp;nbsp;
&lt;br&gt;changes the current Context Object (what the action will be performed on) &amp;nbsp;
&lt;br&gt;for the following 'keypress' handler.
&lt;br&gt;&lt;br&gt;After the 'keydown' handler runs, fire 'keypress'.
&lt;br&gt;&lt;br&gt;The default action for 'keypress' is to allow the keypress if the &amp;nbsp;
&lt;br&gt;acceptKeypress flag is true.
&lt;br&gt;&lt;br&gt;If acceptKeypress is not true or if preventDefault() is called in the &amp;nbsp;
&lt;br&gt;'keypress' handler (either explicitly or implicitly through return false), &amp;nbsp;
&lt;br&gt;then the keypress is not allowed.
&lt;br&gt;&lt;br&gt;If the keypress is allowed then perform the action on the current Context &amp;nbsp;
&lt;br&gt;Object. The action could be text insertion, text deletion, scrolling etc.
&lt;br&gt;&lt;br&gt;If the keypress is not allowed, then do not perform the action unless the &amp;nbsp;
&lt;br&gt;UA does not allow preventing the action, which in that case, perform the &amp;nbsp;
&lt;br&gt;action.
&lt;br&gt;&lt;br&gt;Note that a focus change inside a 'keypress' handler does not change the &amp;nbsp;
&lt;br&gt;current Context Object for the keypress.
&lt;br&gt;&lt;br&gt;If the a key is being held down and Repeat Processing is supported, &amp;nbsp;
&lt;br&gt;process the above over and over. (e.g. keydown -&amp;gt; keyup -&amp;gt; keydown -&amp;gt; &amp;nbsp;
&lt;br&gt;keyup)
&lt;br&gt;&lt;br&gt;When the key is finally released, fire 'keyup'.
&lt;br&gt;&lt;br&gt;However, note that if alert(), confirm() or prompt() is used inside a &amp;nbsp;
&lt;br&gt;'keydown' handler and or inside a 'keypress' handler, whether 'keyup' &amp;nbsp;
&lt;br&gt;fires varies between implementations.
&lt;br&gt;&lt;br&gt;Also note that alert(), confirm(), prompt(), setTimeout and setInterval() &amp;nbsp;
&lt;br&gt;inside the &amp;nbsp;'keydown' , 'keypress' and 'keyup' handlers may result in some &amp;nbsp;
&lt;br&gt;code inside the handlers running in a different order than 'keydown' -&amp;gt; &amp;nbsp;
&lt;br&gt;'keypress' -&amp;gt; 'keyup'.
&lt;br&gt;-------
&lt;br&gt;&lt;br&gt;That's how Firefox appears to work, in my words, from the outside looking &amp;nbsp;
&lt;br&gt;in.
&lt;br&gt;&lt;br&gt;Again though, even if that's not right, I still want the spec to go into &amp;nbsp;
&lt;br&gt;details like that.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/focus-change-inside-keypress-event-handler-tp26088032p26176357.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26157212</id>
	<title>Re: Touch and gestures events</title>
	<published>2009-11-01T06:50:24Z</published>
	<updated>2009-11-01T06:50:24Z</updated>
	<author>
		<name>Pascal Germroth</name>
	</author>
	<content type="html">Hello List,
&lt;br&gt;I subscribed just now, hope this will be in the correct thread...
&lt;br&gt;&lt;br&gt;&amp;gt; We have implemented touch and manipulate (including pan, scale and
&lt;br&gt;&amp;gt; rotate) events on top of Qt 4.6 and WebKit, and the open-sourced
&lt;br&gt;&amp;gt; results can be seen in &lt;a href=&quot;http://opensource.nokia.com/Starlight&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://opensource.nokia.com/Starlight&lt;/a&gt;&lt;br&gt;&lt;br&gt;In order to do really interesting things with multi-touch, the
&lt;br&gt;manipulate API is not enough, for example if applications want to detect
&lt;br&gt;specific gestures (for example a 3-finger 3D rotate/move).
&lt;br&gt;And with the current TouchEvent it would be quite hard to achieve this:
&lt;br&gt;to have easy gesture detection developers need three things:
&lt;br&gt;&lt;br&gt;a &amp;quot;history&amp;quot;-function of the event: multi-touch gestures use a lot of
&lt;br&gt;dragging. So it's interesting to know, where the path of a certain
&lt;br&gt;finger started, and how it arrived at the current point. TouchEvents
&lt;br&gt;should include a pointer to a previous TouchEvent (if applicable)
&lt;br&gt;indicating the last position of the finger, effectively creating a
&lt;br&gt;linked list, where the tail node is the &amp;quot;touch down&amp;quot;-event for that
&lt;br&gt;finger, then the subsequent &amp;quot;touch move&amp;quot;-events until the &amp;quot;touch up&amp;quot;-event.
&lt;br&gt;&lt;br&gt;a list of current event chains: of course, the application could catch
&lt;br&gt;the touch events and add the chain to a list on &amp;quot;touch down&amp;quot;, remove it
&lt;br&gt;on &amp;quot;touch up&amp;quot;, but it would be quite work intensive, since, for optimal
&lt;br&gt;comfort, one such &amp;quot;current touches&amp;quot;-list should exist for every element
&lt;br&gt;that would receive the touch events (i.e. when hit).
&lt;br&gt;&lt;br&gt;some kind of &amp;quot;tagging&amp;quot;: applications would watch for touch events, and
&lt;br&gt;upon receiving them, analyze the &amp;quot;current touches&amp;quot;-list to detect
&lt;br&gt;multi-finger gestures, like &amp;quot;pinch&amp;quot;. For example, when exactly two
&lt;br&gt;fingers are pressed down on an object, this is &amp;quot;pinch&amp;quot;. Should their
&lt;br&gt;traces accidentally leave the object, they should not be recognized as
&lt;br&gt;some other gesture, thus the application would &amp;quot;tag&amp;quot; them, so they won't
&lt;br&gt;show up in &amp;quot;current touches&amp;quot;-lists higher/lower on the hierarchy. Like
&lt;br&gt;bubble/propagation-prevention, but for the whole chain of touch events
&lt;br&gt;that describe the motion of the &amp;quot;tagged&amp;quot; finger.
&lt;br&gt;(this could be a library function though)
&lt;br&gt;&lt;br&gt;&lt;br&gt;The reason, why event-chaining should be in the DOM, and not in the
&lt;br&gt;application, is consistency: there are different approaches to tracking,
&lt;br&gt;one might just look for the trace which has its endpoint nearest to the
&lt;br&gt;motion-event to be matched, or consider velocity and curvature of the
&lt;br&gt;trace to resolve conflicts. (for example: many multi-touch frameworks
&lt;br&gt;fail to track correctly two fingers describing an X-shape by doing &amp;gt; and
&lt;br&gt;&amp;lt; motions and end up with / and \-traces)
&lt;br&gt;But maybe that's the OS's or driver's job.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Sorry if my rambling was irrelevant, my last experience with multi-touch
&lt;br&gt;is from 2007.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;pascal germroth
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Touch-and-gestures-events-tp26157212p26157212.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26148759</id>
	<title>Travel Notification: Expect Delayed Responses</title>
	<published>2009-11-01T00:19:36Z</published>
	<updated>2009-11-01T00:19:36Z</updated>
	<author>
		<name>Doug Schepers-3</name>
	</author>
	<content type="html">Hi, Folks-
&lt;br&gt;&lt;br&gt;Like many W3C folks, I will be traveling to the TPAC (Technical Plenary 
&lt;br&gt;and Advisory Committee face-to-face meeting in Santa Clara, CA) all next 
&lt;br&gt;week, so I will most likely not respond to general emails during that 
&lt;br&gt;time. &amp;nbsp;It may also take me some time to catch up after my return. &amp;nbsp;My 
&lt;br&gt;apologies in advance for slow response times.
&lt;br&gt;&lt;br&gt;Regards-
&lt;br&gt;-Doug Schepers
&lt;br&gt;W3C Team Contact, SVG and WebApps WGs
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Travel-Notification%3A-Expect-Delayed-Responses-tp26148759p26148759.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26142526</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-31T06:54:01Z</published>
	<updated>2009-10-31T06:54:01Z</updated>
	<author>
		<name>Giovanni Campagna</name>
	</author>
	<content type="html">2009/10/30 Doug Schepers &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26142526&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;schepers@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi, Laurens-
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Laurens Holst wrote (on 10/30/09 7:02 AM):
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Op 30-10-2009 10:32, Maciej Stachowiak schreef:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;\uxxxx&amp;quot; is not a syntax, it is a Unicode string of the actual
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; character. \u introduces the escape sequence for a unicode code point.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So you can compare it directly to a character.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Now I’m confused. The way Doug phrased it, \uxxxx *will* be syntax, i.e.
&lt;br&gt;&amp;gt;&amp;gt; the string &amp;quot;U+xxxx&amp;quot; will be replaced by &amp;quot;\\uxxxx&amp;quot; (a 6-character string
&lt;br&gt;&amp;gt;&amp;gt; containing an identifier). Not &amp;quot;\uxxxx&amp;quot; (a 1-character string containing
&lt;br&gt;&amp;gt;&amp;gt; the actual character) which could be compared directly to a character.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Otherwise, I would suggest not to talk in terms of &amp;quot;\uxxxx&amp;quot; strings at
&lt;br&gt;&amp;gt;&amp;gt; all, after all the DOM specification does not need to concern itself
&lt;br&gt;&amp;gt;&amp;gt; with serialisation, but instead to just talk about characters and code
&lt;br&gt;&amp;gt;&amp;gt; points.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Just to clarify, are you objecting to the loose way I phrased it in my
&lt;br&gt;&amp;gt; email, or did you review the spec and find problems there?  I may have used
&lt;br&gt;&amp;gt; the wrong terminology in the email, but the spec is the definitive source
&lt;br&gt;&amp;gt; that needs to get it right.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So, please clarify if you object to the change described in the spec.
&lt;/div&gt;&lt;br&gt;Section 6.2.6, point 1.1.1: it says to use the &amp;quot;character value&amp;quot;,
&lt;br&gt;which is defined as the Unicode character escape, that is the string
&lt;br&gt;consisting of U+005C REVERSE SOLIDUS, U+0075 LATIN SMALL LETTER U and
&lt;br&gt;four characters in the range U+0061-0066 LATIN SMALL LETTER A to LATIN
&lt;br&gt;SMALL LETTER F and U+0030-0039 DIGIT ZERO to DIGIT NINE, which
&lt;br&gt;interpreted as hexadecimal can be transformed into an Unicode scalar
&lt;br&gt;value / Unicode codepoint (meaning of the Unicode standard, not of the
&lt;br&gt;DOM3Events spec).
&lt;br&gt;Point 1.1.2 instead says to use the &amp;quot;Unicode code point&amp;quot; and encode it
&lt;br&gt;with &amp;quot;\u&amp;quot; (again U+005C REVERSE SOLIDUS, U+0075 LATIN SMALL LETTER U)
&lt;br&gt;followed by 4 or more hexadecimal digits.
&lt;br&gt;Section 2.6.7 finally says to use the most-author friendly between the
&lt;br&gt;&amp;quot;character value&amp;quot; and the &amp;quot;key name&amp;quot;.
&lt;br&gt;&lt;br&gt;So:
&lt;br&gt;1) What is the difference between 6.2.6, point 1.1.1 and the
&lt;br&gt;following? Both result in a key value like &amp;quot;\u0041&amp;quot; for A U+0041 LATIN
&lt;br&gt;CAPITAL LETTER A (since that is the &amp;quot;character value&amp;quot; for that key in
&lt;br&gt;6.2.7, and that is the encoded Unicode code point as for the Unicode
&lt;br&gt;standard)
&lt;br&gt;2) How do you choose the most author friendly? I think that &amp;quot;A&amp;quot; is a
&lt;br&gt;better name for U+0041 LATIN CAPITAL LETTER A, but spec says to prefer
&lt;br&gt;always the character value, that is &amp;quot;\u0041&amp;quot;
&lt;br&gt;3) Why both the examples and some earlier poster affirmed that instead
&lt;br&gt;the value key is a single character string containing the character
&lt;br&gt;itself?
&lt;br&gt;&lt;br&gt;That is, given event instance of KeyboardEvent, event.key in Javascript returns
&lt;br&gt;for a key with label &amp;quot;+ =&amp;quot;, in the US layout, shift pressed
&lt;br&gt;- &amp;quot;\u002B&amp;quot;, the Unicode code point / character value, represented as
&lt;br&gt;an escaped string
&lt;br&gt;this means that key.length===6 and key.charAt(0) === &amp;quot;\&amp;quot;
&lt;br&gt;also, String(key).length===6 and JSON.parse(key) throws, that is,
&lt;br&gt;there is no good method to get a &amp;quot;+&amp;quot; from that (unicode character
&lt;br&gt;escapes are resolved at the parser layer, they don't leak inside
&lt;br&gt;strings)
&lt;br&gt;- &amp;quot;Plus&amp;quot;, the key name from the database
&lt;br&gt;this means that you need convertKeyValue to get the plus, but probably
&lt;br&gt;it is more recognizable or easier to remember than &amp;quot;\u002B&amp;quot;
&lt;br&gt;- &amp;quot;+&amp;quot;, the Unicode character
&lt;br&gt;this means that key.length===1 and key.charAt(0) ===&amp;quot;+&amp;quot;
&lt;br&gt;this is probably the better way for an author, although is not what
&lt;br&gt;the spec currently says
&lt;br&gt;for a key with label &amp;quot;% 5&amp;quot;, in the US-international layout, AltGr pressed
&lt;br&gt;- &amp;quot;\u20AC&amp;quot; (key.length===6 and key.charAt(0)===&amp;quot;\&amp;quot;)
&lt;br&gt;- &amp;quot;Euro&amp;quot;
&lt;br&gt;- &amp;quot;€&amp;quot;
&lt;br&gt;and for an imaginary key corresponding to U+10000 LINEAR B SYLLABLE B008 A
&lt;br&gt;- &amp;quot;\uD800\uDC00&amp;quot; (key.length===12 and key.charAt(0)===&amp;quot;\&amp;quot;)
&lt;br&gt;- &amp;quot;\u10000&amp;quot; (key.length===7 and key.charAt(0) ===&amp;quot;\&amp;quot;)
&lt;br&gt;- &amp;quot;LinearBSyllableB008A&amp;quot;
&lt;br&gt;- &amp;quot;&amp;quot; (key.length===2 and key.charAt(0) ===String.fromCharCode(55296) )
&lt;br&gt;&lt;br&gt;Moreover, given the same events in C++, assuming that WebIDL for C++
&lt;br&gt;said: &amp;quot;use char* for DOMString&amp;quot;, what you get?
&lt;br&gt;- &amp;quot;\u002B&amp;quot;,&amp;quot;\u20AC&amp;quot; and &amp;quot;\uD800\uDC00&amp;quot;, meaning that strlen(key)==6
&lt;br&gt;(==12 for U+10000) and *key == 92
&lt;br&gt;- &amp;quot;\u002B&amp;quot;, &amp;quot;\u20AC&amp;quot; and &amp;quot;\u10000&amp;quot;, meaning that strlen(key) is either
&lt;br&gt;6 or 7 and *key==92
&lt;br&gt;- &amp;quot;Plus&amp;quot;, &amp;quot;Euro&amp;quot;, &amp;quot;LinearBSyllableB008A&amp;quot;
&lt;br&gt;- &amp;quot;+&amp;quot; ( strlen(key)==1 and *key == 43 ) &amp;quot;€&amp;quot; ( strlen(key)==3 and *key
&lt;br&gt;== 226 ) and &amp;quot;&amp;quot; ( strlen(key)==4 and *key==240 )
&lt;br&gt;&lt;br&gt;&amp;gt; Regards-
&lt;br&gt;&amp;gt; -Doug Schepers
&lt;br&gt;&amp;gt; W3C Team Contact, SVG and WebApps WGs
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Giovanni
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26142526.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26140732</id>
	<title>Re: [whatwg] focus change inside keypress event handler</title>
	<published>2009-10-31T01:54:25Z</published>
	<updated>2009-10-31T01:54:25Z</updated>
	<author>
		<name>Michael A. Puls II</name>
	</author>
	<content type="html">On Fri, 30 Oct 2009 18:56:33 -0400, Boris Zbarsky &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26140732&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bzbarsky@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 10/30/09 6:41 PM, Michael A. Puls II wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is there a good way to solve that though? Or is that something that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; should just be left as YMMV?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Well, you could require an alert to block all key event delivery to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the web page, right?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Would that be a desirable solution? Is that hard to implement?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't know, and I don't know. &amp;nbsp;The answer to the latter question &amp;nbsp;
&lt;br&gt;&amp;gt; depends strongly on the precise event model the browser is using, how it &amp;nbsp;
&lt;br&gt;&amp;gt; interacts with the OS, what it actually does for alert, etc.
&lt;/div&gt;&lt;/div&gt;Another thing I noticed:
&lt;br&gt;&lt;br&gt;With the attached, 'keyup' doesn't fire if you use an alert() in the &amp;nbsp;
&lt;br&gt;'keydown' or 'keypress' handler.
&lt;br&gt;&lt;br&gt;Well, actually, it fires sometimes in Firefox and Safari, but it's not &amp;nbsp;
&lt;br&gt;very consistent. Avoiding alert()s makes things more consistent.
&lt;br&gt;&lt;br&gt;I also noticed that with the attached in Opera, if you press the spacebar &amp;nbsp;
&lt;br&gt;in the field, the alert that pops up disappears right away because the &amp;nbsp;
&lt;br&gt;space somehow gets invoked on the OK button on the alert().
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael&lt;br /&gt;&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset=&quot;utf-8&quot;&gt;
        &lt;title&gt;&lt;/title&gt;
        
    &lt;/head&gt;
    &lt;body&gt;
        &lt;p&gt;&lt;input&gt;&lt;/p&gt;
    &lt;/body&gt;
&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/focus-change-inside-keypress-event-handler-tp26088032p26140732.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26143017</id>
	<title>Typo in section 6.2.5</title>
	<published>2009-10-30T21:59:22Z</published>
	<updated>2009-10-30T21:59:22Z</updated>
	<author>
		<name>ATSUSHI TAKAYAMA</name>
	</author>
	<content type="html">Hi Doug Schepers,
&lt;br&gt;&lt;br&gt;In the latest draft, there is a (very minor) typo. In section 6.2.5,
&lt;br&gt;the third example it says;
&lt;br&gt;&lt;br&gt;5. textInput: 'a' @@ shouldn't this be 'é'?
&lt;br&gt;&lt;br&gt;but it should be
&lt;br&gt;&lt;br&gt;5. textInput: 'e'
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#keyset-key-values&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#keyset-key-values&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Atsushi Takayama
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Typo-in-section-6.2.5-tp26143017p26143017.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26139637</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T20:39:09Z</published>
	<updated>2009-10-30T20:39:09Z</updated>
	<author>
		<name>Mark Davis ☕</name>
	</author>
	<content type="html">&amp;gt; If you happen to want to interpret&lt;br&gt;
them as UTF-16, you are free to do so, but there is not and never will&lt;br&gt;
be any guarantee that all strings are well-formed UTF-16.&lt;br&gt;&lt;br&gt;You never have that guarantee, any more than you have the guarantee that a source purporting to be UTF-8 is in fact well formed. All conscientious recipients need to check the data -- &lt;b&gt;if&lt;/b&gt; they are sensitive to ill-formed text. Luckily, the impact of ill-formed UTF-16 is vastly less than that of ill-formed UTF-8.&lt;br&gt;
&lt;br clear=&quot;all&quot;&gt;Mark&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Oct 30, 2009 at 17:47, John Cowan &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26139637&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cowan@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Phillips, Addison scripsit:&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&amp;gt; ECMAScript&amp;#39;s &amp;quot;firm commitment&amp;quot; to a 16-bit character model (i.e. UTF-16)&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;If only.&lt;br&gt;
&lt;br&gt;
JavaScript and JSON strings aren&amp;#39;t sequences of characters, they are&lt;br&gt;
sequences of 16-bit unsigned integers.  If you happen to want to interpret&lt;br&gt;
them as UTF-16, you are free to do so, but there is not and never will&lt;br&gt;
be any guarantee that all strings are well-formed UTF-16.  What&amp;#39;s more,&lt;br&gt;
the built-in JSON serializer provided by ECMAScript 5th edition does&lt;br&gt;
not generate escape sequences for isolated surrogate codepoints, so that&lt;br&gt;
some strings will be written out in CESU-8 rather than UTF-8.&lt;br&gt;
&lt;br&gt;
Worse yet, the JSON RFC is self-contradictory, with the result that it&amp;#39;s&lt;br&gt;
not even clear that CESU-8-encoded JSON is illegal.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
Let&amp;#39;s face it: software is crap. Feature-laden and bloated, written under&lt;br&gt;
tremendous time-pressure, often by incapable coders, using dangerous&lt;br&gt;
languages and inadequate tools, trying to connect to heaps of broken or&lt;br&gt;
obsolete protocols, implemented equally insufficiently, running on&lt;br&gt;
unpredictable hardware -- we are all more than used to brokenness.&lt;br&gt;
                   --Felix Winkelmann&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26139637.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26138821</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T17:47:38Z</published>
	<updated>2009-10-30T17:47:38Z</updated>
	<author>
		<name>John Cowan</name>
	</author>
	<content type="html">Phillips, Addison scripsit:
&lt;br&gt;&lt;br&gt;&amp;gt; ECMAScript's &amp;quot;firm commitment&amp;quot; to a 16-bit character model (i.e. UTF-16)
&lt;br&gt;&lt;br&gt;If only.
&lt;br&gt;&lt;br&gt;JavaScript and JSON strings aren't sequences of characters, they are
&lt;br&gt;sequences of 16-bit unsigned integers. &amp;nbsp;If you happen to want to interpret
&lt;br&gt;them as UTF-16, you are free to do so, but there is not and never will
&lt;br&gt;be any guarantee that all strings are well-formed UTF-16. &amp;nbsp;What's more,
&lt;br&gt;the built-in JSON serializer provided by ECMAScript 5th edition does
&lt;br&gt;not generate escape sequences for isolated surrogate codepoints, so that
&lt;br&gt;some strings will be written out in CESU-8 rather than UTF-8.
&lt;br&gt;&lt;br&gt;Worse yet, the JSON RFC is self-contradictory, with the result that it's
&lt;br&gt;not even clear that CESU-8-encoded JSON is illegal.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Let's face it: software is crap. Feature-laden and bloated, written under
&lt;br&gt;tremendous time-pressure, often by incapable coders, using dangerous
&lt;br&gt;languages and inadequate tools, trying to connect to heaps of broken or
&lt;br&gt;obsolete protocols, implemented equally insufficiently, running on
&lt;br&gt;unpredictable hardware -- we are all more than used to brokenness.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--Felix Winkelmann
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26138821.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26138186</id>
	<title>Re: [whatwg] focus change inside keypress event handler</title>
	<published>2009-10-30T16:09:42Z</published>
	<updated>2009-10-30T16:09:42Z</updated>
	<author>
		<name>Michael A. Puls II</name>
	</author>
	<content type="html">On Fri, 30 Oct 2009 00:34:14 -0400, Doug Schepers &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26138186&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;schepers@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi, Folks-
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Scott González wrote (on 10/29/09 11:03 AM):
&lt;br&gt;&amp;gt;&amp;gt; On Thu, Oct 29, 2009 at 9:20 AM, Michael A. Puls II
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26138186&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shadow2531@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26138186&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shadow2531@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; Safari and Firefox will allow focus() inside the handler to decide
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; where the character gets inserted, but only with &amp;quot;keydown&amp;quot;. With
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;keypress&amp;quot; (and textInput in webkit) in Firefox and Safari, it
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; appears that the char was already inserted right after keydown, so a
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; focus() change is already too late. Despite that though,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; preventDefault() still works in Firefox and Safari inside a
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;keypress&amp;quot; handler to prevent the char from being inserted. So, I'm
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; not exactly sure what's they're doing behind the scenes.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; DOM Level 3 Events says &amp;quot;The default action of the keypress event
&lt;br&gt;&amp;gt;&amp;gt; depends upon the key and the context: if the key is associated with a
&lt;br&gt;&amp;gt;&amp;gt; character, and if there currently focused element in the document can
&lt;br&gt;&amp;gt;&amp;gt; receive text (such as a form input or an editable text block), the
&lt;br&gt;&amp;gt;&amp;gt; default action is to dispatch a textInput event with the character as
&lt;br&gt;&amp;gt;&amp;gt; the value of the TextEvent.data attribute&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The default action of a keypress is not to insert a character in the
&lt;br&gt;&amp;gt;&amp;gt; element that has focus, but to insert a character on the element that
&lt;br&gt;&amp;gt;&amp;gt; represents the context of the keypress. In the given example, the
&lt;br&gt;&amp;gt;&amp;gt; keypress's context is the first field, not the second.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Correct.
&lt;/div&gt;&lt;br&gt;So, you're saying that changing the focus() to another field inside the &amp;nbsp;
&lt;br&gt;'keydown' handler (or keypress handler in the case of Opera and IE) MUST &amp;nbsp;
&lt;br&gt;NOT change the insertion context (the field in this case that the text &amp;nbsp;
&lt;br&gt;gets inserted into)?
&lt;br&gt;&lt;br&gt;If so, that would seem to contradict what browsers do when the focus &amp;nbsp;
&lt;br&gt;changes inside &amp;nbsp;a 'keydown' handler and contradicts Opera and IE for focus &amp;nbsp;
&lt;br&gt;changes inside a 'keypress' handler.
&lt;br&gt;&lt;br&gt;Not allowing that would break chase.com's SSI entry for example. (It uses &amp;nbsp;
&lt;br&gt;3 fields and moves to the next field after you've entered 3 numbers, then &amp;nbsp;
&lt;br&gt;2, then 4.
&lt;br&gt;&lt;br&gt;I've noticed lots of sites that change focus as you're typing to move the &amp;nbsp;
&lt;br&gt;rest of the text to the next field. I'm not sure how many do the focus &amp;nbsp;
&lt;br&gt;change inside a handler instead of after/before though.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/focus-change-inside-keypress-event-handler-tp26088032p26138186.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26138120</id>
	<title>Re: [whatwg] focus change inside keypress event handler</title>
	<published>2009-10-30T16:00:21Z</published>
	<updated>2009-10-30T16:00:21Z</updated>
	<author>
		<name>Michael A. Puls II</name>
	</author>
	<content type="html">On Fri, 30 Oct 2009 18:56:33 -0400, Boris Zbarsky &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26138120&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bzbarsky@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 10/30/09 6:41 PM, Michael A. Puls II wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is there a good way to solve that though? Or is that something that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; should just be left as YMMV?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Well, you could require an alert to block all key event delivery to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the web page, right?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Would that be a desirable solution? Is that hard to implement?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't know, and I don't know. &amp;nbsp;The answer to the latter question &amp;nbsp;
&lt;br&gt;&amp;gt; depends strongly on the precise event model the browser is using, how it &amp;nbsp;
&lt;br&gt;&amp;gt; interacts with the OS, what it actually does for alert, etc.
&lt;/div&gt;&lt;br&gt;O.K. Thanks
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/focus-change-inside-keypress-event-handler-tp26088032p26138120.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26138078</id>
	<title>Re: [whatwg] focus change inside keypress event handler</title>
	<published>2009-10-30T15:56:33Z</published>
	<updated>2009-10-30T15:56:33Z</updated>
	<author>
		<name>Boris Zbarsky</name>
	</author>
	<content type="html">On 10/30/09 6:41 PM, Michael A. Puls II wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is there a good way to solve that though? Or is that something that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; should just be left as YMMV?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Well, you could require an alert to block all key event delivery to
&lt;br&gt;&amp;gt;&amp;gt; the web page, right?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Would that be a desirable solution? Is that hard to implement?
&lt;br&gt;&lt;br&gt;I don't know, and I don't know. &amp;nbsp;The answer to the latter question 
&lt;br&gt;depends strongly on the precise event model the browser is using, how it 
&lt;br&gt;interacts with the OS, what it actually does for alert, etc.
&lt;br&gt;&lt;br&gt;-Boris
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/focus-change-inside-keypress-event-handler-tp26088032p26138078.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26137917</id>
	<title>Re: [whatwg] focus change inside keypress event handler</title>
	<published>2009-10-30T15:41:34Z</published>
	<updated>2009-10-30T15:41:34Z</updated>
	<author>
		<name>Michael A. Puls II</name>
	</author>
	<content type="html">On Fri, 30 Oct 2009 01:29:00 -0400, Boris Zbarsky &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26137917&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bzbarsky@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 10/29/09 9:58 PM, Michael A. Puls II wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; But, in Firefox, Safari and Opera, it's possible to change what &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; element
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the text is inserted into by changing the focus in 'keydown'.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Right; that happens because the keydown and keypress events need not
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fire on the same element and because the text entry is the keypress
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; default action. In Gecko, that is. I can't speak to Safari and Opera.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So, just to be sure, you're happy with that behavior?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Which? &amp;nbsp;It being possible to change focus in keydown and thus change &amp;nbsp;
&lt;br&gt;&amp;gt; where the text will go?
&lt;/div&gt;&lt;br&gt;Yes.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm pretty agnostic on whether that should be possible or not. Whichever &amp;nbsp;
&lt;br&gt;&amp;gt; way makes the event model simpler, I think.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This seems wrong to me. If a key is held down, I would expect a single
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; keydown followed by multiple keypresses.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; O.K. FF doesn't do that though. If you hold down a key, it'll do:
&lt;br&gt;&amp;gt;&amp;gt; keydown
&lt;br&gt;&amp;gt;&amp;gt; keypress
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; over and over.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; At quick thought, are you O.K. with FF's current behavior being a bug?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't know. &amp;nbsp;It's worth looking up why the behavior is as it is (that &amp;nbsp;
&lt;br&gt;&amp;gt; is, what web sites depend on). &amp;nbsp;Multiple keypresses in this situation &amp;nbsp;
&lt;br&gt;&amp;gt; are a definite necessity.
&lt;/div&gt;&lt;br&gt;Thanks. Opera seems to get a way with the multiple keydowns. But, its user &amp;nbsp;
&lt;br&gt;base isn't as large, so, I'm not sure how much weight that has.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Note that 'keyup' may fire before 'keypress' if you release the key
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; before an alert() inside the 'keydown' handler shows and blocks.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This seems unfortunate, but ok.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a good way to solve that though? Or is that something that
&lt;br&gt;&amp;gt;&amp;gt; should just be left as YMMV?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Well, you could require an alert to block all key event delivery to the &amp;nbsp;
&lt;br&gt;&amp;gt; web page, right?
&lt;/div&gt;&lt;br&gt;Would that be a desirable solution? Is that hard to implement?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/focus-change-inside-keypress-event-handler-tp26088032p26137917.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26136926</id>
	<title>RE: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T14:11:34Z</published>
	<updated>2009-10-30T14:11:34Z</updated>
	<author>
		<name>Phillips, Addison</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Doug Schepers scripsit:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 1) DOM3 Events implementations also update their Javascript
&lt;br&gt;&amp;gt; engines to
&lt;br&gt;&amp;gt; &amp;gt; be able to process the additional escape sequence (e.g. one of
&lt;br&gt;&amp;gt; the ones
&lt;br&gt;&amp;gt; &amp;gt; you mention above) in the same way they process the &amp;quot;\u&amp;quot; escape
&lt;br&gt;&amp;gt; &amp;gt; sequence. &amp;nbsp;This is the better long-term solution, and I'd hope
&lt;br&gt;&amp;gt; ECMA TC39
&lt;br&gt;&amp;gt; &amp;gt; could be persuaded to add this to future ECMAScript specs.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I doubt it, given that such escapes are usually programmatically
&lt;br&gt;&amp;gt; generated.
&lt;br&gt;&amp;gt; In any case, ECMAScript is firmly committed to a 16-bit character
&lt;br&gt;&amp;gt; model.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;ECMAScript's &amp;quot;firm commitment&amp;quot; to a 16-bit character model (i.e. UTF-16) is not the problem. Lack of support for supplementary characters (that is, those above 0xFFFF in Unicode), however, is a very real problem. No UTF-16 process can escape the fact that, even if one applies a short-sighted limit to BMP characters, a character may require more than one code point to encode. As long as it is clear that DOM3 Events key identifiers are a string containing possibly more than one code point (and potentially more than one character), the escaping syntax is just a detail of the language.
&lt;br&gt;&lt;br&gt;Addison
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26136926.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26136910</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T14:10:01Z</published>
	<updated>2009-10-30T14:10:01Z</updated>
	<author>
		<name>John Cowan</name>
	</author>
	<content type="html">Mark Davis �?? scripsit:
&lt;br&gt;&lt;br&gt;&amp;gt; Java is committed to 16-bit code units as well, but a relatively small
&lt;br&gt;&amp;gt; number of additions enabled effective handling of UTF-16 text.
&lt;br&gt;&lt;br&gt;Good luck getting any such additions into JavaScript, except as a library.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;They tried to pierce your heart &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John Cowan
&lt;br&gt;with a Morgul-knife that remains in the &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.ccil.org/~cowan&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ccil.org/~cowan&lt;/a&gt;&lt;br&gt;wound. &amp;nbsp;If they had succeeded, you would
&lt;br&gt;become a wraith under the domination of the Dark Lord. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --Gandalf
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26136910.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26136855</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T14:04:59Z</published>
	<updated>2009-10-30T14:04:59Z</updated>
	<author>
		<name>Mark Davis ☕</name>
	</author>
	<content type="html">Java is committed to 16-bit code units as well, but a relatively small number of additions enabled effective handling of UTF-16 text.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Mark&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Oct 30, 2009 at 13:42, John Cowan &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26136855&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cowan@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Doug Schepers scripsit:&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&amp;gt; 1) DOM3 Events implementations also update their Javascript engines to&lt;br&gt;
&amp;gt; be able to process the additional escape sequence (e.g. one of the ones&lt;br&gt;
&amp;gt; you mention above) in the same way they process the &amp;quot;\u&amp;quot; escape&lt;br&gt;
&amp;gt; sequence.  This is the better long-term solution, and I&amp;#39;d hope ECMA TC39&lt;br&gt;
&amp;gt; could be persuaded to add this to future ECMAScript specs.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;I doubt it, given that such escapes are usually programmatically generated.&lt;br&gt;
In any case, ECMAScript is firmly committed to a 16-bit character model.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
A rabbi whose congregation doesn&amp;#39;t want         John Cowan&lt;br&gt;
to drive him out of town isn&amp;#39;t a rabbi,         &lt;a href=&quot;http://www.ccil.org/%7Ecowan&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.ccil.org/~cowan&lt;/a&gt;&lt;br&gt;
and a rabbi who lets them do it                 &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26136855&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cowan@...&lt;/a&gt;&lt;br&gt;
isn&amp;#39;t a man.    --Jewish saying&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26136855.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26136585</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T13:42:59Z</published>
	<updated>2009-10-30T13:42:59Z</updated>
	<author>
		<name>John Cowan</name>
	</author>
	<content type="html">Doug Schepers scripsit:
&lt;br&gt;&lt;br&gt;&amp;gt; 1) DOM3 Events implementations also update their Javascript engines to 
&lt;br&gt;&amp;gt; be able to process the additional escape sequence (e.g. one of the ones 
&lt;br&gt;&amp;gt; you mention above) in the same way they process the &amp;quot;\u&amp;quot; escape 
&lt;br&gt;&amp;gt; sequence. &amp;nbsp;This is the better long-term solution, and I'd hope ECMA TC39 
&lt;br&gt;&amp;gt; could be persuaded to add this to future ECMAScript specs.
&lt;br&gt;&lt;br&gt;I doubt it, given that such escapes are usually programmatically generated.
&lt;br&gt;In any case, ECMAScript is firmly committed to a 16-bit character model.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;A rabbi whose congregation doesn't want &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John Cowan
&lt;br&gt;to drive him out of town isn't a rabbi, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.ccil.org/~cowan&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ccil.org/~cowan&lt;/a&gt;&lt;br&gt;and a rabbi who lets them do it &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26136585&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cowan@...&lt;/a&gt;
&lt;br&gt;isn't a man. &amp;nbsp; &amp;nbsp;--Jewish saying
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26136585.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26135185</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T11:48:20Z</published>
	<updated>2009-10-30T11:48:20Z</updated>
	<author>
		<name>Doug Schepers-3</name>
	</author>
	<content type="html">Hi, Laurens-
&lt;br&gt;&lt;br&gt;Laurens Holst wrote (on 10/30/09 7:02 AM):
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Op 30-10-2009 10:32, Maciej Stachowiak schreef:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;\uxxxx&amp;quot; is not a syntax, it is a Unicode string of the actual
&lt;br&gt;&amp;gt;&amp;gt; character. \u introduces the escape sequence for a unicode code point.
&lt;br&gt;&amp;gt;&amp;gt; So you can compare it directly to a character.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now I’m confused. The way Doug phrased it, \uxxxx *will* be syntax, i.e.
&lt;br&gt;&amp;gt; the string &amp;quot;U+xxxx&amp;quot; will be replaced by &amp;quot;\\uxxxx&amp;quot; (a 6-character string
&lt;br&gt;&amp;gt; containing an identifier). Not &amp;quot;\uxxxx&amp;quot; (a 1-character string containing
&lt;br&gt;&amp;gt; the actual character) which could be compared directly to a character.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Otherwise, I would suggest not to talk in terms of &amp;quot;\uxxxx&amp;quot; strings at
&lt;br&gt;&amp;gt; all, after all the DOM specification does not need to concern itself
&lt;br&gt;&amp;gt; with serialisation, but instead to just talk about characters and code
&lt;br&gt;&amp;gt; points.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Just to clarify, are you objecting to the loose way I phrased it in my 
&lt;br&gt;email, or did you review the spec and find problems there? &amp;nbsp;I may have 
&lt;br&gt;used the wrong terminology in the email, but the spec is the definitive 
&lt;br&gt;source that needs to get it right.
&lt;br&gt;&lt;br&gt;So, please clarify if you object to the change described in the spec.
&lt;br&gt;&lt;br&gt;Regards-
&lt;br&gt;-Doug Schepers
&lt;br&gt;W3C Team Contact, SVG and WebApps WGs
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26135185.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26135088</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T11:41:24Z</published>
	<updated>2009-10-30T11:41:24Z</updated>
	<author>
		<name>Mark Davis ☕</name>
	</author>
	<content type="html">If the target of this is JavaScript, then the alternative (which Java has also chosen) is to use the UTF16 representation, wherein a pair of \u characters represents each supplementary character (above FFFF). It just needs to be carefully documented.&lt;br&gt;
&lt;br clear=&quot;all&quot;&gt;Mark&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Oct 30, 2009 at 11:38, Doug Schepers &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26135088&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;schepers@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi, Mark-&lt;br&gt;
&lt;br&gt;
Mark Davis ☕ wrote (on 10/30/09 12:22 PM):&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I want to point out that Unicode code points can go up to hex 10FFFF.&lt;br&gt;
The standard for \u is exactly 4 digits, so that one can intermix with&lt;br&gt;
characters and know where it terminates. There are a couple of schemes&lt;br&gt;
that are used to extend this to up to 6 digits, and still know where to&lt;br&gt;
terminate.&lt;br&gt;
&lt;br&gt;
\UXXXXXXXX - C++, ICU&lt;br&gt;
\UXXXXXX - C#&lt;br&gt;
\u{xxxxxx} - Ruby&lt;br&gt;
&lt;br&gt;
There needs to be some mechanism for extending to 6 digits. It would be&lt;br&gt;
best to use one of the above rather than a new one. (My personal&lt;br&gt;
favorite is Ruby&amp;#39;s.)&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;
The reason the &amp;quot;\u&amp;quot; escaped character sequence was chosen was that it is the native ECMAScript escape notation, which is easy for browser-based applications to use directly (i.e. they can inject it directly into the markup as a character).&lt;br&gt;

&lt;br&gt;
But, yes, this does have the cap of 4 digits, and I personally would prefer to use a different escape mechanism... but only if one or both of these 2 conditions obtains:&lt;br&gt;
&lt;br&gt;
1) DOM3 Events implementations also update their Javascript engines to be able to process the additional escape sequence (e.g. one of the ones you mention above) in the same way they process the &amp;quot;\u&amp;quot; escape sequence.  This is the better long-term solution, and I&amp;#39;d hope ECMA TC39 could be persuaded to add this to future ECMAScript specs.&lt;br&gt;

&lt;br&gt;
2) Script authors could use a normalizing method (c.f. convertKeyValue) to &amp;quot;dumb down&amp;quot; the 6-digit escape sequence into the 4-digit format (by converting to surrogate pairs when necessary).&lt;br&gt;
&lt;br&gt;
Javascript is becoming increasingly important, and so is the need for internationalized and localized language support.  With the new font-linking enablers (including my favorite, WOFF [1]), and i18n domain extension policy [2], we&amp;#39;re going to see more use of languages I have no chance of ever understanding, and I want DOM3 Events and ECMAScript to be part of that.  I&amp;#39;d rather not introduce a not-very-good solution (UTF-16) that we know would not meet all the needs of the world community, just because of a (temporary?) circumstance with a vagary of Javascript.&lt;br&gt;

&lt;br&gt;
But, I also want this spec interoperably implemented... so, any solution needs the buy-in of the implementers.  Any arguments on either side of the coin would help make a more informed decision.&lt;br&gt;
&lt;br&gt;
BTW, you stated a preference for the Ruby-style delimited escaped characters... could you say why you prefer that?&lt;br&gt;
&lt;br&gt;
[1] &lt;a href=&quot;http://people.mozilla.com/%7Ejkew/woff/woff-2009-09-16.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://people.mozilla.com/~jkew/woff/woff-2009-09-16.html&lt;/a&gt;&lt;br&gt;
[2] &lt;a href=&quot;http://www.icann.org/en/announcements/announcement-30oct09-en.htm&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.icann.org/en/announcements/announcement-30oct09-en.htm&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Regards-&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
-Doug Schepers&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
W3C Team Contact, SVG and WebApps WGs&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26135088.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26135049</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T11:38:35Z</published>
	<updated>2009-10-30T11:38:35Z</updated>
	<author>
		<name>Doug Schepers-3</name>
	</author>
	<content type="html">Hi, Mark-
&lt;br&gt;&lt;br&gt;Mark Davis ☕ wrote (on 10/30/09 12:22 PM):
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I want to point out that Unicode code points can go up to hex 10FFFF.
&lt;br&gt;&amp;gt; The standard for \u is exactly 4 digits, so that one can intermix with
&lt;br&gt;&amp;gt; characters and know where it terminates. There are a couple of schemes
&lt;br&gt;&amp;gt; that are used to extend this to up to 6 digits, and still know where to
&lt;br&gt;&amp;gt; terminate.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; \UXXXXXXXX - C++, ICU
&lt;br&gt;&amp;gt; \UXXXXXX - C#
&lt;br&gt;&amp;gt; \u{xxxxxx} - Ruby
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There needs to be some mechanism for extending to 6 digits. It would be
&lt;br&gt;&amp;gt; best to use one of the above rather than a new one. (My personal
&lt;br&gt;&amp;gt; favorite is Ruby's.)
&lt;/div&gt;&lt;br&gt;The reason the &amp;quot;\u&amp;quot; escaped character sequence was chosen was that it is 
&lt;br&gt;the native ECMAScript escape notation, which is easy for browser-based 
&lt;br&gt;applications to use directly (i.e. they can inject it directly into the 
&lt;br&gt;markup as a character).
&lt;br&gt;&lt;br&gt;But, yes, this does have the cap of 4 digits, and I personally would 
&lt;br&gt;prefer to use a different escape mechanism... but only if one or both of 
&lt;br&gt;these 2 conditions obtains:
&lt;br&gt;&lt;br&gt;1) DOM3 Events implementations also update their Javascript engines to 
&lt;br&gt;be able to process the additional escape sequence (e.g. one of the ones 
&lt;br&gt;you mention above) in the same way they process the &amp;quot;\u&amp;quot; escape 
&lt;br&gt;sequence. &amp;nbsp;This is the better long-term solution, and I'd hope ECMA TC39 
&lt;br&gt;could be persuaded to add this to future ECMAScript specs.
&lt;br&gt;&lt;br&gt;2) Script authors could use a normalizing method (c.f. convertKeyValue) 
&lt;br&gt;to &amp;quot;dumb down&amp;quot; the 6-digit escape sequence into the 4-digit format (by 
&lt;br&gt;converting to surrogate pairs when necessary).
&lt;br&gt;&lt;br&gt;Javascript is becoming increasingly important, and so is the need for 
&lt;br&gt;internationalized and localized language support. &amp;nbsp;With the new 
&lt;br&gt;font-linking enablers (including my favorite, WOFF [1]), and i18n domain 
&lt;br&gt;extension policy [2], we're going to see more use of languages I have no 
&lt;br&gt;chance of ever understanding, and I want DOM3 Events and ECMAScript to 
&lt;br&gt;be part of that. &amp;nbsp;I'd rather not introduce a not-very-good solution 
&lt;br&gt;(UTF-16) that we know would not meet all the needs of the world 
&lt;br&gt;community, just because of a (temporary?) circumstance with a vagary of 
&lt;br&gt;Javascript.
&lt;br&gt;&lt;br&gt;But, I also want this spec interoperably implemented... so, any solution 
&lt;br&gt;needs the buy-in of the implementers. &amp;nbsp;Any arguments on either side of 
&lt;br&gt;the coin would help make a more informed decision.
&lt;br&gt;&lt;br&gt;BTW, you stated a preference for the Ruby-style delimited escaped 
&lt;br&gt;characters... could you say why you prefer that?
&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;http://people.mozilla.com/~jkew/woff/woff-2009-09-16.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.mozilla.com/~jkew/woff/woff-2009-09-16.html&lt;/a&gt;&lt;br&gt;[2] &lt;a href=&quot;http://www.icann.org/en/announcements/announcement-30oct09-en.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.icann.org/en/announcements/announcement-30oct09-en.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards-
&lt;br&gt;-Doug Schepers
&lt;br&gt;W3C Team Contact, SVG and WebApps WGs
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26135049.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26133029</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T09:22:52Z</published>
	<updated>2009-10-30T09:22:52Z</updated>
	<author>
		<name>Mark Davis ☕</name>
	</author>
	<content type="html">I want to point out that Unicode code points can go up to hex 10FFFF. The standard for \u is exactly 4 digits, so that one can intermix with characters and know where it terminates. There are a couple of schemes that are used to extend this to up to 6 digits, and still know where to terminate.&lt;br&gt;
&lt;br&gt;\UXXXXXXXX - C++, ICU&lt;br&gt;\UXXXXXX - C#&lt;br&gt;\u{xxxxxx} - Ruby&lt;br&gt;&lt;br&gt;There needs to be some mechanism for extending to 6 digits. It would be best to use one of the above rather than a new one. (My personal favorite is Ruby&amp;#39;s.)&lt;br&gt;
&lt;br clear=&quot;all&quot;&gt;Mark&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Oct 30, 2009 at 00:32, Doug Schepers &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26133029&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;schepers@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi, Folks-&lt;br&gt;
&lt;br&gt;
(BCC to potentially affected groups: w3c-html-cg, public-webapps, public-i18n-core, wai-xtech, www-svg, public-forms, public-xhtml2, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26133029&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;public-html@...&lt;/a&gt;, www-voice... please forward on to any relevant groups or individuals I may have missed, especially outside W3C.)&lt;br&gt;

&lt;br&gt;
As editor of the DOM3 Events specification, I made what some may consider to be drastic changes in the most recent drafts:&lt;br&gt;
 * I changed the syntax of the key identifier strings from &amp;quot;U+xxxx&amp;quot; (a plain string representing the Unicode code point) to &amp;quot;\uxxxx&amp;quot; (an escaped UTF-16 character string), based on content author and implementer feedback.&lt;br&gt;

 * I renamed the &amp;quot;key identifier(s)&amp;quot; feature to &amp;quot;key value(s)&amp;quot;.&lt;br&gt;
&lt;br&gt;
I&amp;#39;ve mentioned these ideas before in DOM3 Events telcons, and finally decided to do it, after first consulting with the I18n WG, who generally approved of the scheme (though not without some comments about details that will need to be addressed and resolved).&lt;br&gt;

&lt;br&gt;
The new string format should be easier to deal with for developers, and the new name reflects some confusion I&amp;#39;ve encountered when explaining what &amp;quot;key identifiers&amp;quot; are... the work &amp;quot;identifier&amp;quot; seems to evoke the concept of a unique identifier for a key, when in fact what the feature does is provides the most appropriate value given the state of keyboard modifiers and modes.  I have tried also to clarify this in the prose of the spec.&lt;br&gt;

&lt;br&gt;
We are aware that there may already be implementations and specifications that rely on the previous string format and name (as well as links), back from when this was a W3C Note, and we do not make this decision lightly, but we do believe this is the right decision for a stable and internationalized keyboard interface going forward.  For those implementations and specifications that need the previous functionality and name, you may be able to reference the SVG Tiny 1.2 specification [2] instead, which does include the old Key Identifiers feature more or less intact from the previous definition, and is a stable W3C Recommendation.&lt;br&gt;

&lt;br&gt;
You can review the changes in the most recent Editor&amp;#39;s Draft [1].  The WebApps WG welcomes your feedback to the &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26133029&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www-dom@...&lt;/a&gt; list.  This specification is still a work in progress, though we do hope to go to Last Call soon, so we are open to suggestions. (Note that the spec is mostly feature-complete, so new event types and other changes may have to wait for the next version, but send them on anyway.)&lt;br&gt;

&lt;br&gt;
[1] &lt;a href=&quot;http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#keyset&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#keyset&lt;/a&gt;&lt;br&gt;
[2] &lt;a href=&quot;http://www.w3.org/TR/SVGTiny12/svgudom.html#KeyIdentifiersSet&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/SVGTiny12/svgudom.html#KeyIdentifiersSet&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Regards-&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
-Doug Schepers, on behalf of the WebApps WG&lt;br&gt;
Editor, DOM Level 3 Events&lt;br&gt;
W3C Team Contact, SVG and WebApps WGs&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26133029.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26129076</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T05:14:12Z</published>
	<updated>2009-10-30T05:14:12Z</updated>
	<author>
		<name>Alex Danilo</name>
	</author>
	<content type="html">Hi Laurens,
&lt;br&gt;&lt;br&gt;--Original Message--:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;Op 30-10-2009 11:36, Alex Danilo schreef:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;\uxxxx&amp;quot; is not a syntax, it is a Unicode string of the actual
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; character. \u introduces the escape sequence for a unicode code point.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So you can compare it directly to a character.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for the clarification.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Well, regardless of whether what Maciej says is actually the case,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So, how does this provide any advantage over 'keyCode'?
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;keyCode returns an integer, which in JavaScript is not directly 
&lt;br&gt;&amp;gt;comparable to a character (well, it is, but not like in C; 101 == 
&lt;br&gt;&amp;gt;&amp;quot;101&amp;quot;). JavaScript does not have a character type, only a string type. 
&lt;br&gt;&amp;gt;Actually I think C does not have a character type either, it is an alias 
&lt;br&gt;&amp;gt;for byte, no? Either way, in JavaScript 169 != &amp;quot;©&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It seemed to me that keyCode is used for the code point, as in maps
&lt;br&gt;&amp;gt;&amp;gt; to the Unicode point and the whole reason there was keyIdentifier
&lt;br&gt;&amp;gt;&amp;gt; was to provide descriptive strings.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;keyCode does not map to Unicode code points, e.g. F1-F24 map to values 
&lt;br&gt;&amp;gt;112-135 which are not Unicode.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If I want the Unicode point explicitly I can use
&lt;br&gt;&amp;gt;&amp;gt; keyCode or am I missing something?
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Hope this cleared that up.
&lt;/div&gt;&lt;br&gt;Yes, thanks it did, much appreciated.
&lt;br&gt;&lt;br&gt;Alex
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;~Laurens
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;-- 
&lt;br&gt;&amp;gt;~~ Ushiko-san! Kimi wa doushite, Ushiko-san nan da!! ~~
&lt;br&gt;&amp;gt;Laurens Holst, developer, Utrecht, the Netherlands
&lt;br&gt;&amp;gt;Website: www.grauw.nl. Backbase employee; www.backbase.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26129076.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26128396</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T04:21:25Z</published>
	<updated>2009-10-30T04:21:25Z</updated>
	<author>
		<name>Laurens Holst-3</name>
	</author>
	<content type="html">Op 30-10-2009 11:36, Alex Danilo schreef:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;\uxxxx&amp;quot; is not a syntax, it is a Unicode string of the actual
&lt;br&gt;&amp;gt;&amp;gt; character. \u introduces the escape sequence for a unicode code point.
&lt;br&gt;&amp;gt;&amp;gt; So you can compare it directly to a character.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Thanks for the clarification.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Well, regardless of whether what Maciej says is actually the case,
&lt;br&gt;&lt;br&gt;&amp;gt; So, how does this provide any advantage over 'keyCode'?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;keyCode returns an integer, which in JavaScript is not directly 
&lt;br&gt;comparable to a character (well, it is, but not like in C; 101 == 
&lt;br&gt;&amp;quot;101&amp;quot;). JavaScript does not have a character type, only a string type. 
&lt;br&gt;Actually I think C does not have a character type either, it is an alias 
&lt;br&gt;for byte, no? Either way, in JavaScript 169 != &amp;quot;©&amp;quot;.
&lt;br&gt;&lt;br&gt;&amp;gt; It seemed to me that keyCode is used for the code point, as in maps
&lt;br&gt;&amp;gt; to the Unicode point and the whole reason there was keyIdentifier
&lt;br&gt;&amp;gt; was to provide descriptive strings.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;keyCode does not map to Unicode code points, e.g. F1-F24 map to values 
&lt;br&gt;112-135 which are not Unicode.
&lt;br&gt;&lt;br&gt;&amp;gt; If I want the Unicode point explicitly I can use
&lt;br&gt;&amp;gt; keyCode or am I missing something?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Hope this cleared that up.
&lt;br&gt;&lt;br&gt;~Laurens
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;~~ Ushiko-san! Kimi wa doushite, Ushiko-san nan da!! ~~
&lt;br&gt;Laurens Holst, developer, Utrecht, the Netherlands
&lt;br&gt;Website: www.grauw.nl. Backbase employee; www.backbase.com
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (4K) &lt;a href=&quot;http://old.nabble.com/attachment/26128396/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26128396.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26128195</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T04:02:36Z</published>
	<updated>2009-10-30T04:02:36Z</updated>
	<author>
		<name>Laurens Holst-3</name>
	</author>
	<content type="html">Op 30-10-2009 10:32, Maciej Stachowiak schreef:
&lt;br&gt;&amp;gt; &amp;quot;\uxxxx&amp;quot; is not a syntax, it is a Unicode string of the actual 
&lt;br&gt;&amp;gt; character. \u introduces the escape sequence for a unicode code point. 
&lt;br&gt;&amp;gt; So you can compare it directly to a character.
&lt;br&gt;&lt;br&gt;Now I’m confused. The way Doug phrased it, \uxxxx *will* be syntax, i.e. 
&lt;br&gt;the string &amp;quot;U+xxxx&amp;quot; will be replaced by &amp;quot;\\uxxxx&amp;quot; (a 6-character string 
&lt;br&gt;containing an identifier). Not &amp;quot;\uxxxx&amp;quot; (a 1-character string containing 
&lt;br&gt;the actual character) which could be compared directly to a character.
&lt;br&gt;&lt;br&gt;Otherwise, I would suggest not to talk in terms of &amp;quot;\uxxxx&amp;quot; strings at 
&lt;br&gt;all, after all the DOM specification does not need to concern itself 
&lt;br&gt;with serialisation, but instead to just talk about characters and code 
&lt;br&gt;points.
&lt;br&gt;&lt;br&gt;~Laurens
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;~~ Ushiko-san! Kimi wa doushite, Ushiko-san nan da!! ~~
&lt;br&gt;Laurens Holst, developer, Utrecht, the Netherlands
&lt;br&gt;Website: www.grauw.nl. Backbase employee; www.backbase.com
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (4K) &lt;a href=&quot;http://old.nabble.com/attachment/26128195/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26128195.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26127948</id>
	<title>Re: Changes to DOM3 Events Key Identifiers</title>
	<published>2009-10-30T03:41:16Z</published>
	<updated>2009-10-30T03:41:16Z</updated>
	<author>
		<name>Laurens Holst-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I really really don’t see the benefit of that change. It only 
&lt;br&gt;complicates things because it looks similar to a JS-string encoded 
&lt;br&gt;character but is not actually one. I.e., &amp;quot;\u2018&amp;quot; does not equal 
&lt;br&gt;&amp;quot;\\u2018&amp;quot;. By introducing a backslash, I can already see people getting 
&lt;br&gt;confused by this, writing:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if (event.key == &amp;quot;\u2018&amp;quot;)
&lt;br&gt;&lt;br&gt;instead of
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if (event.key == &amp;quot;\\u2018&amp;quot;)
&lt;br&gt;&lt;br&gt;I know I often forget to double-escape the backslash (especially when I 
&lt;br&gt;write regular expressions in strings :)), and then scratch my head over 
&lt;br&gt;why it doesn’t work.
&lt;br&gt;&lt;br&gt;Additionally, using \u gives the impression that it is an encoded string 
&lt;br&gt;character, but that is not the case. People are in my experience having 
&lt;br&gt;trouble realising the difference between serialisation and the actual 
&lt;br&gt;character (e.g. they think that .nodeValue of a textnode containing &amp; 
&lt;br&gt;will return &amp;amp; instead of &amp;). I think introducing this ‘encoding in a 
&lt;br&gt;string value’ does not help people.
&lt;br&gt;&lt;br&gt;Why would the new syntax be more intuitive than the old one? Just 
&lt;br&gt;because one implementor says they got author feedback about this? Well, 
&lt;br&gt;hereby I give you the feedback that as an author I do not ‘like’ the 
&lt;br&gt;UTF-16 escaped character string :). I think it’s nicer to use the 
&lt;br&gt;U+-notation, that is also used all over the place in specifications, web 
&lt;br&gt;logs, the windows character map, etc. Contrary to that, the JS syntax is 
&lt;br&gt;not familiar to me at all, I never use the JS-\u-notation, I encode the 
&lt;br&gt;files as Unicode and insert the actual characters, which makes the 
&lt;br&gt;strings readable.
&lt;br&gt;&lt;br&gt;Also what about characters outside the 16-bit planes? You say escaped 
&lt;br&gt;*UTF-16* character string. Does that mean for the U+10000 character, the 
&lt;br&gt;resulting string will instead be \uD800\uDC00? In this case, I 
&lt;br&gt;definitely think the latter is much more complicated.
&lt;br&gt;&lt;br&gt;And of course there is also the matter that here you are changing an 
&lt;br&gt;existing property which is referenced in a REC specification (SVN Tiny 
&lt;br&gt;1.2). Because you do not really break backwards compatibility as you 
&lt;br&gt;change the property name as well, this could be acceptable, however I 
&lt;br&gt;can see no arguments for making such a change.
&lt;br&gt;&lt;br&gt;To be clear, I do not consider “based on content author and implementer 
&lt;br&gt;feedback” to be a well-founded argumentation to justify such a change 
&lt;br&gt;:). I hope here I *did* provide some concrete reasons why this change is 
&lt;br&gt;*not* a good idea. Especially given the confusing 
&lt;br&gt;double-backslash-escaping described above, I do not think the current 
&lt;br&gt;change was well thought-through by those who gave the feedback.
&lt;br&gt;&lt;br&gt;If you would really want to make things easier, you could not return a 
&lt;br&gt;key identifier but the character itself so you can compare it directly. 
&lt;br&gt;E.g.:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if (event.key == &amp;quot;\u00A9&amp;quot;)
&lt;br&gt;&lt;br&gt;or
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if (event.key == &amp;quot;©&amp;quot;)
&lt;br&gt;&lt;br&gt;~Laurens
&lt;br&gt;&lt;br&gt;Op 30-10-2009 8:32, Doug Schepers schreef:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi, Folks-
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (BCC to potentially affected groups: w3c-html-cg, public-webapps, 
&lt;br&gt;&amp;gt; public-i18n-core, wai-xtech, www-svg, public-forms, public-xhtml2, 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26127948&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;public-html@...&lt;/a&gt;, www-voice... please forward on to any relevant 
&lt;br&gt;&amp;gt; groups or individuals I may have missed, especially outside W3C.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As editor of the DOM3 Events specification, I made what some may 
&lt;br&gt;&amp;gt; consider to be drastic changes in the most recent drafts:
&lt;br&gt;&amp;gt; &amp;nbsp;* I changed the syntax of the key identifier strings from &amp;quot;U+xxxx&amp;quot; (a 
&lt;br&gt;&amp;gt; plain string representing the Unicode code point) to &amp;quot;\uxxxx&amp;quot; (an 
&lt;br&gt;&amp;gt; escaped UTF-16 character string), based on content author and 
&lt;br&gt;&amp;gt; implementer feedback.
&lt;br&gt;&amp;gt; &amp;nbsp;* I renamed the &amp;quot;key identifier(s)&amp;quot; feature to &amp;quot;key value(s)&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've mentioned these ideas before in DOM3 Events telcons, and finally 
&lt;br&gt;&amp;gt; decided to do it, after first consulting with the I18n WG, who 
&lt;br&gt;&amp;gt; generally approved of the scheme (though not without some comments 
&lt;br&gt;&amp;gt; about details that will need to be addressed and resolved).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The new string format should be easier to deal with for developers, 
&lt;br&gt;&amp;gt; and the new name reflects some confusion I've encountered when 
&lt;br&gt;&amp;gt; explaining what &amp;quot;key identifiers&amp;quot; are... the work &amp;quot;identifier&amp;quot; seems 
&lt;br&gt;&amp;gt; to evoke the concept of a unique identifier for a key, when in fact 
&lt;br&gt;&amp;gt; what the feature does is provides the most appropriate value given the 
&lt;br&gt;&amp;gt; state of keyboard modifiers and modes. &amp;nbsp;I have tried also to clarify 
&lt;br&gt;&amp;gt; this in the prose of the spec.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are aware that there may already be implementations and 
&lt;br&gt;&amp;gt; specifications that rely on the previous string format and name (as 
&lt;br&gt;&amp;gt; well as links), back from when this was a W3C Note, and we do not make 
&lt;br&gt;&amp;gt; this decision lightly, but we do believe this is the right decision 
&lt;br&gt;&amp;gt; for a stable and internationalized keyboard interface going forward. &amp;nbsp;
&lt;br&gt;&amp;gt; For those implementations and specifications that need the previous 
&lt;br&gt;&amp;gt; functionality and name, you may be able to reference the SVG Tiny 1.2 
&lt;br&gt;&amp;gt; specification [2] instead, which does include the old Key Identifiers 
&lt;br&gt;&amp;gt; feature more or less intact from the previous definition, and is a 
&lt;br&gt;&amp;gt; stable W3C Recommendation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can review the changes in the most recent Editor's Draft [1]. &amp;nbsp;The 
&lt;br&gt;&amp;gt; WebApps WG welcomes your feedback to the &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26127948&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www-dom@...&lt;/a&gt; list. &amp;nbsp;This 
&lt;br&gt;&amp;gt; specification is still a work in progress, though we do hope to go to 
&lt;br&gt;&amp;gt; Last Call soon, so we are open to suggestions. (Note that the spec is 
&lt;br&gt;&amp;gt; mostly feature-complete, so new event types and other changes may have 
&lt;br&gt;&amp;gt; to wait for the next version, but send them on anyway.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [1] 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#keyset&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#keyset&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [2] &lt;a href=&quot;http://www.w3.org/TR/SVGTiny12/svgudom.html#KeyIdentifiersSet&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/SVGTiny12/svgudom.html#KeyIdentifiersSet&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards-
&lt;br&gt;&amp;gt; -Doug Schepers, on behalf of the WebApps WG
&lt;br&gt;&amp;gt; Editor, DOM Level 3 Events
&lt;br&gt;&amp;gt; W3C Team Contact, SVG and WebApps WGs
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;~~ Ushiko-san! Kimi wa doushite, Ushiko-san nan da!! ~~
&lt;br&gt;Laurens Holst, developer, Utrecht, the Netherlands
&lt;br&gt;Website: www.grauw.nl. Backbase employee; www.backbase.com
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (4K) &lt;a href=&quot;http://old.nabble.com/attachment/26127948/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/w3.org---www-dom-f11685.html&quot; embed=&quot;fixTarget[11685]&quot; target=&quot;_top&quot; &gt;w3.org - www-dom&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changes-to-DOM3-Events-Key-Identifiers-tp26126019p26127948.html" />
</entry>

</feed>
