Ticket #9815 (closed bug: fixed)
$.contains(element, textNode) always throws in IE8
|Reported by:||ykaul@…||Owned by:|
Calling jQuery.contains with the second parameter being a text node, Internet Explorer 8 throws a "No such interface supported" exception.
The documentation for $.contains explicitely states that the second parameter can be any type of node; not just elements. So this should work and report whether the node is contained in element given through first parameter.
A test case can be found here: http://jsfiddle.net/JpYCA/
- Priority changed from undecided to low
- Component changed from unfiled to core
- Milestone changed from None to 1.next