jquery/jquery — pull request #880 by elijahmanor (2012-07-30 18:19:24+00:00)
Title: Fix Manipulation Clone Unit Tests. Related to gh-870

This pull request is related to gh-870 where I added a patch to fix cloning in IE10

As we reviewed the patch it was found that there was a commented unit test in the clone() test on line #1258
https://github.com/jquery/jquery/blob/master/test/unit/manipulation.js#L1258

```javascript
// equal( clone.html(), div.html(), "Element contents cloned" );
```

The clone was working fine in oldIE, but the unit test was failing because the `.html()` was not exactly the same. oldIE was either changing the case of params or inserting a whole bunch of extra params during the clone.

The fix that was recommended was to check only a subset of the attributes on the object element and to check to make sure the cloned object had at least had the params that the original object element had.

I put the tests in an IIFE to protect any variables I used from the surrounding code and I named them in an attempt to describe the intent of the test.

I've ran the manipulation unit tests against IE6/7/8/9/10 in BrowserStack and also Opera/Firefox/Safai locally on my MacBook Pro