Side navigation
#13393 closed bug (fixed)
Opened February 05, 2013 02:17PM UTC
Closed April 09, 2013 01:36AM UTC
.focus() results in 'Unspecified error.' IE9, v1.9
Reported by: | Firsh | Owned by: | timmywil |
---|---|---|---|
Priority: | blocker | Milestone: | 1.10 |
Component: | event | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When called on its own (not in a click handler or something like that), it returns this in IE9 (dev console). Tried with jQuery migrate, no joy.
min:
LOG: JQMIGRATE: Logging is active
SCRIPT16389: Unspecified error.
jquery.min.js, line 2 character 7390
dev:
LOG: JQMIGRATE: Logging is active
SCRIPT16389: Unspecified error.
jquery.js, line 3216 character 5
JSfiddle: http://jsbin.com/aloleq/2/edit
Thought it was that I was using SIAF before the html elements are loaded (not sure where jsfiddle puts scripts), but it's not the case.
Interestingly it doesn't occur in the view mode of jsfiddle, only in the edit view (and in my plugin).
Attachments (0)
Change History (8)
Changed February 05, 2013 02:28PM UTC by comment:1
Changed February 05, 2013 02:40PM UTC by comment:2
This is related to #13378, which only repros inside an iframe. Asking about document.activeElement
seems to be grounds for the IE9 script death penalty while the page is loading.
Slightly modified test case: http://jsbin.com/aloleq/8/edit
Workaround, use native DOM .focus()
: http://jsbin.com/aloleq/10/edit
Changed February 05, 2013 03:20PM UTC by comment:3
_comment0: | Replying to [comment:2 dmethvin]: \ > This is related to #13378, which only repros inside an iframe. Asking about `document.activeElement` seems to be grounds for the IE9 script death penalty while the page is loading. \ > \ > Slightly modified test case: http://jsbin.com/aloleq/8/edit \ > \ > Workaround, use native DOM `.focus()`: http://jsbin.com/aloleq/10/edit \ \ The [0] workaroudn is king! → 1360077683416072 |
---|
Replying to [comment:2 dmethvin]:
Workaround, use native DOM .focus()
: http://jsbin.com/aloleq/10/edit
The [0] workaround is king!
Changed February 12, 2013 03:25AM UTC by comment:4
component: | unfiled → event |
---|---|
milestone: | None → 1.9.2 |
priority: | undecided → blocker |
status: | new → open |
Changed March 25, 2013 04:23PM UTC by comment:5
owner: | → timmywil |
---|---|
status: | open → assigned |
Changed March 25, 2013 04:24PM UTC by comment:6
version: | git → 1.9.1 |
---|
Changed April 05, 2013 12:57AM UTC by comment:7
milestone: | 1.9.2 → 1.10 |
---|
It works when called with an 1ms setTimeout:
http://jsbin.com/#/ogahac/1/edit