DescriptionThis fixes http://code.google.com/p/google-caja/issues/detail?id=1132
1. Support event.currentTarget on IE.
2. YUI has a couple special behaviors on IE.
Since YUI in caja on IE will detect the browser as IE,
YUI will try to do the IE-specific things:
2a. IE doesn't support event.relatedTarget,
so YUI tries to set it.
Caja does support event.relatedTarget,
and it's read-only (per DOM spec),
so YUI's attempt to set it throws an exception.
This change adds a relatedTarget setter that
ignores the new value and doesn't throw.
2b. IE has some non-standard functions that
YUI will call: el.hasFocus() and el.setActive().
setActive is a weaker form of focus().
It makes the element 'active',
which means it will have focus when the window gets focus,
but doesn't force the window to be focused.
This change adds support for both methods,
delegating to the IE functions.
el.setActive() is restricted the same way as el.focus(),
it's only allowed when isProcessingEvent___
Patch Set 1 #Patch Set 2 : event-related fixes for IE #
Total comments: 3
Patch Set 3 : event-related fixes for IE #
Total comments: 6
Patch Set 4 : event-related fixes for IE #
Total comments: 1
MessagesTotal messages: 11
|
||||||||||||||||||||||||||||