HTML Import Test 4
This commit is contained in:
parent
00db4bbede
commit
df45f8dca4
@ -1,9 +1,9 @@
|
|||||||
<html>
|
<html id="page">
|
||||||
<head>
|
<head>
|
||||||
<link rel="import" href="../docs.html">
|
<link rel="import" href="../docs.html">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="mainbody">
|
<body>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
@ -11,5 +11,5 @@
|
|||||||
var link = document.querySelector('link[rel="import"]');
|
var link = document.querySelector('link[rel="import"]');
|
||||||
var content = link.import;
|
var content = link.import;
|
||||||
|
|
||||||
document.getElementById('mainbody').innerHTML = content.documentElement.innerHTML;
|
document.getElementById('page').innerHTML = content.documentElement.innerHTML;
|
||||||
</script>
|
</script>
|
Loading…
x
Reference in New Issue
Block a user