Recently I came across the current documentation of TAG <link>
on the W3.org site - link where you specify that you can import content with mime-type text / html, ie HTML files. This would solve a current problem that I have to factorize the content of my application into several HTML files.
I made a small example that worked only on Chromium (the Google Steroid Browser).
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Seres Humanos</title>
<link id="heart-html" rel="import" href="heart.html">
</head>
<body>
<p>O que um homem sem um coração ?</p>
<script>
var link = document.querySelector('link#heart-html');
var heart = link.import;
// Acesso o DOM do documento em heart.html
var myHeartMsg = heart.querySelector('p#text');
console.log(myHeartMsg.innerHTML);
</script>
</body>
</html>
heart.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>heart</title>
</head>
<body>
<p id="text">Este é meu coração</p>
</body>
</html>
I searched extensively on the WEB and did not find information on what support this feature would expect, ie importing text / html content into modern browsers using the link tag?