// attributes in IE that are actually only stored
// as properties will not be copied (such as the
// the name attribute on an input).
// attributes in IE that are actually only stored
// as properties will not be copied (such as the
// the name attribute on an input).
- return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0];
+ return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")], ownerDocument)[0];