Ticket #5282 (closed bug: worksforme)
Elements have different order after find("*") and filter() in IE7
|Reported by:||leif||Owned by:||leif|
$cloned = $(this).clone(true); $elements = $(this).find("*").andSelf().filter("textarea, select"); $clonedElements = $cloned.find("*").andSelf().filter("textarea, select");
The above snippet gets all elements in the set of $(this). It filters for textareas and selects in the original set and a cloned set. The elements in the sets have different orders, more precisely, they are sorted by type, first textareas then selects. The filtered elements from the cloned set are in a different order. Sometimes this only works once after page reload.
If you filter elements like this: $clonedElements = $cloned.find("textarea, select").andSelf(); they do not get a new order.
- Keywords dom order added
- Owner set to john
- Component changed from unfilled to selector
- Owner changed from john to leif
- Status changed from new to pending