Modify ↓
Ticket #5775 (closed bug: worksforme)
animate uses Node.ELEMENT and not Node.ELEMENT_NODE
| Reported by: | wholcomb | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | effects | Version: | 1.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The w3c spec specifies the constant for an element node is Node.ELEMENT_NODE.
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html
The animate function has the line:
var hidden = this.nodeType == Node.ELEMENT && jQuery(this).is(":hidden");
This fails on documents loaded with a application/xhtml+xml mimetype in Firefox 3.5.
| this.nodeType == Node.ELEMENT_NODE) && jQuery(this).is(":hidden"); |
Works.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
