Test fixes.  Refs #7681, refs #16926, refs #11800.

Squash commit of:

---
more test fixes to avoid spurious failures, refs #7681

git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dijit@29504 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 1058941e058b68839be402d47d9434da0dcd0072)

---
allow for IE9+ async focus in !ComboBox and !FilteringSelect test, refs #16926

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@31121 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit fbec15cae397b80cec54682cb40858a4e125050b)
(cherry picked from commit 902b314bfcd6a6138781740656c09083e3b01c24)

---
allow for IE9+'s async focus in Form test, refs #11800

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@31106 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit a63501c383e1fe018aeec952dc490719fb644df5)
(cherry picked from commit 919a3428177c010c010f4bbcc2f897ee2c4b7df7)

---
Close german drop down Calenda so we can focus the american !DateTextBox <input>, refs #7681.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@28284 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit f5f3c1b20130d8705602ec523a7e064c23308d48)
Set focus.curNode when clicking non-disabled tabIndex=-1 element, fixes #17106 !strict.  Tested on IE8, IE10, chrome.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@31423 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit e458357856119a7a4e1e80c069ddbc1ada4c2021)
(cherry picked from commit 1a799036daa8543e27921748e378de58f6e22343)

Conflicts:
	focus.js

(cherry picked from commit b4fb07e605a9d7dc35307c7a5a3370dbb5f5a535)
Change focus manager to use dojo/on rather than addEventListener() and attachEvent() on older IE's.
Also increase timeout of _justMouseDowned handler to 13ms.

Finally (not a cherry-pick), increased the _clearActiveWidgetsTimer timer to 100ms,
needed to avoid error in TooltipDialog_a11y.html test where pressing the space bar
on the InlineEditBox (inside a TooltipDialog) causes the TooltipDialog to close on IE8.

Includes squash commit of:
---
Change focus manager to use dojo/on rather than addEventListener() and attachEvent() on older IE's.
This makes the behavior consistent across browsers (as to listening on capture phase vs. bubbling phase),
and as a side effect fixes #13341 !strict.

Also fixes various tests on IE11, such as tests/Dialog.html.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@30957 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 9965406f7184e8cee4467efc893ca5d85637b2e1)

Conflicts:
	focus.js

---
Fix regression from [30957]: evt.target is the normalized way to reference the event target, not evt.srcElement.  Fixes exception on firefox.  Refs #13341 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@30994 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit a42b8ed0fc2c297ad36931a2fa028fd000bae266)

---
Increase the timeout of `_justMouseDowned` handler to 13 ms.

Fixes #17668

(cherry picked from commit 7cb2066cebba23d9e08af5f2e0210203bde3436a)
Use the same on.selector() method for keyboard events as click events...
it's more resilient for Trees with custom !TreeNodes that have nested widgets,
in which case the getEnclosingWidget() call might return one of the nested widgets rather than the TreeNode.

This also switches to pure use of dojo/on, which means that the keypress event is no longer normalized to mozilla behavior,
so had to handle those browser differences myself.

Fixes Tree_a11y.html test failure on IE11, probably due to the change to use the non-normalized keypress event.

Fixes #15153, refs #14896 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@28310 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 75159670d36ded6d1d7860ede79f734665478083)

Conflicts:
	Tree.js
Fix regression on IE10+ clicking blank screen to close drop down.

Squash of two commits:

---
Fix regression on IE10 clicking blank screen to close drop down.

An e.preventDefault() call on MSPointerDown prevents the button from getting focus,
so I stopped doing it for that case.  This is a minimal fix.  Other approaches include:

  1. remove the e.preventDefault() call for all cases
  2. make focus manager listen for touch/mouse events in the capture phase rather than the
bubbling phase, to avoid missing the event due to a stopPropagation() call; it used
to do this except for IE6-8, but I normalized the behavior in 9965406.

Fixes #17262.  Refs #13048, #13341.
(cherry picked from commit 76216d6d829f011a87ccd11ee12d3a862d6e2e88)

(cherry picked from commit d5eef52f83e77b9d501ce0309b4f4d69b64c6a04)

--
Support unprefixed pointer events
(change applies to _HasDropDown only)

Refs #17600

(cherry picked from commit 275211f84351d18b000b35cb495e8efc6fde7937)

Conflicts:
	form/TextBox.js

(cherry picked from commit b9dd78e03fa2d3542350f767e46d2771654b6517)

Conflicts:
	_CssStateMixin.js
	form/TextBox.js
	tests/_HasDropDown.html
	tests/_Widget-on.html
	tests/tree/Tree_ObjectStoreModel.html

(cherry picked from commit 809130120f849c06f71ceadc8edeb3e2edd9db1b)

Conflicts:
	_HasDropDown.js
[Backport IE fixes to 1.7]
Changes related to editor height.

Squash of commits:

---
Make <body> height 100%, so that clicking anywhere on the editor window focuses it on IE8.
As a side effect, the scroll bar needs to go on the <body> rather than on <html>.
Tested on IE8, Chrome, FF (manually), and IE9.  Fixes #16804 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@31303 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit b61b56813dc0c922976ca783496c374b81ca3b58)

Conflicts:
	_editor/RichText.js

(cherry picked from commit 162b535bcccb4711e036c7cdf5dfea23f412dc5a)

---
Set height:100% on #dijitEditorBody in addition to <body>.
Note that usually #dijitEditorBody is actually the <div> inside the <body>.

Setting height:100% on the <div> fixes the Chrome problem where typing ctrl-A
and then some characters locks up the editor.   Doesn't seem to affect IE or FF.
The scrollbar still seems to work (showing up when the editor content overflows).

Refs #16804, fixes #17559.
Fixes regression from b61b56813dc0c922976ca783496c374b81ca3b58.
(cherry picked from commit fbfc0fe89385b8c85f2ae75c27a15ac807b42e71)

(cherry picked from commit d3d7755e7d3d2135dcedcc51cc16f7431a065d5d)

Conflicts:
	_editor/RichText.js

(cherry picked from commit c77d355c71583e6cea314a1d1058bc791407bf27)
Fixes and refactorings for Editor on Firefox.
Somehow this also fixes the LinkDialog regression failure on IE11.
Fixes Editor_a11y.html regression test failure and removes firefox specific code branches:

- make FF use contentEditable (like other browsers) rather than designMode
- make FF use nested <div> inside of <body> (inside of <iframe>), just like other browsers
- expand tabbing helper code (both for tabbing/shift-tabbing into and out of the iframe) to run on all browsers, not just IE
- reduce the number of branches in focus(), so that Chrome and FF use same path

Fixes #10415, #17560.
Refs #11898.

(cherry-picked from a443c8477ce0111edffe0977dbe5794380af1001)
Editor has("trident") changes.

Squash commit of:

---
Make necessary additions to Editor for modern Trident

Refs #17311.

(cherry picked from commit bb0ae352737b8994419d591c728bf962d1d0759b)

---
Fix formatblock command in IE9+

Fixes FontChoice plugin test failures

Refs #17311.

(cherry picked from commit 8d884077865c16f9debe62077f8ebb2da07ee29f)