HTML Import Test 4

This commit is contained in:
Glenwing 2017-08-18 16:11:37 -07:00
parent 00db4bbede
commit df45f8dca4

View File

@ -1,9 +1,9 @@
<html>
<html id="page">
<head>
<link rel="import" href="../docs.html">
</head>
<body id="mainbody">
<body>
</body>
</html>
@ -11,5 +11,5 @@
var link = document.querySelector('link[rel="import"]');
var content = link.import;
document.getElementById('mainbody').innerHTML = content.documentElement.innerHTML;
document.getElementById('page').innerHTML = content.documentElement.innerHTML;
</script>