IE11: exception when calling $.fn.data() on the body element when it has an 'onpageshow' attribute
|Reported by:||jsmreese@…||Owned by:||dmethvin|
IE11 throws an exception when calling $.fn.data() on a jQuery collection of the body element when the body element has an 'onpageshow' attribute.
The exception throws in IE11 with all versions of jQuery I've tried (2.1.0, 1.11.0, 1.9.1, 1.6.4).
The exception does not throw in Chrome or Firefox (current stable versions) with any version of jQuery, nor in IE8 with 1.x versions of jQuery.
The exception does not throw when the body does not have 'onpageshow' but has other event-based attributes such as 'onclick' or 'onload'.
The exception still throws in IE11 if the body attribute has 'data-' attributes before or after the 'onpageshow' attribute.
Change History (7)
comment:5 Changed 2 years ago by dmethvin
- Component changed from unfiled to data
- Priority changed from undecided to low