Modify ↓
Ticket #11632 (closed bug: invalid)
FUNCTION CREATESAFEFRAGMENT HAVE SOME REDUNDANT CODE
| Reported by: | snandy | Owned by: | snandy |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Only document object has createElement method. so "if ( safeFrag.createElement )"in createSafeFragment is redundant.
Change History
comment:1 Changed 13 months ago by sindresorhus
- Owner set to snandy
- Priority changed from undecided to low
- Status changed from new to pending
comment:2 Changed 13 months ago by rwaldron
- Status changed from pending to closed
- Resolution set to invalid
That's how we avoid the loop in modern browsers. In oldIE, there is a createElement method on DocumentFragment: http://jsfiddle.net/rwaldron/ZGgGs/
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.

Can you link to some references? Line number?
There's probably a reason it's there. Try to remove it, run the testsuite in supported browsers, and report back if it still passes.