|
|
@ -524,13 +524,7 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var getHTML = function (Dom) {
|
|
|
|
var getHTML = function (Dom) {
|
|
|
|
var data = inner.innerHTML;
|
|
|
|
return ('<!DOCTYPE html>\n' + '<html>\n' + inner.innerHTML);
|
|
|
|
Dom = Dom || (new DOMParser()).parseFromString(data,"text/html");
|
|
|
|
|
|
|
|
return ('<!DOCTYPE html>\n' +
|
|
|
|
|
|
|
|
'<html>\n' +
|
|
|
|
|
|
|
|
(typeof(Hyperjson.toString) === 'function'?
|
|
|
|
|
|
|
|
Hyperjson.toString(Hyperjson.fromDOM(Dom.body)):
|
|
|
|
|
|
|
|
Dom.head.outerHTML) + '\n');
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var domFromHTML = function (html) {
|
|
|
|
var domFromHTML = function (html) {
|
|
|
|