+ if (options.inner) {
+ var result = [];
+ for (var i = 0; i < doc.documentElement.childNodes.length; i++) {
+ result.push(serialize(doc.documentElement.childNodes[i]).join(''));
+ };
+ options.success(result.join(''));
+ } else {
+ options.success(serialize(doc.documentElement).join(''));
+ }