I have the following code made in Dreamweaver following a tutorial to perform includes of html elements in another file. Although in dream they look good, when I try in the explorer they do not open.
Include.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Include</title>
<link rel="import" href="content.html">
</head>
<body>
<div>
<script>
var link = document.querySelector('link[rel="import"]');
var content = link.import;
// Grab DOM from warning.html's document.
var el = content.querySelector('.warning');
document.body.appendChild(el.cloneNode(true));
</script>
</div>
</body>
</html>
content.html
<div class="warning">
<style>
h3 {
color: red !important;
}
</style>
<h3>Warning!</h3>
<p>This page is under construction</p>
</div>
<div class="outdated">
<h3>Heads up!</h3>
<p>This content may be out of date</p>
</div>
Thanks in advance.