W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

[html-imports] Static import in body tag

From: Bang Seongbeom <bangseongbeom@hotmail.com>
Date: Fri, 19 Jun 2015 03:37:37 +0900
Message-ID: <BLU436-SMTP239F14448F2455954CC64D5B0A50@phx.gbl>
To: public-webapps@w3.org
Importing needs to be manipulated by script. But it's too verbose to use 
script always.

If link tag can be inserted in body tag, and inserts importee's 
document.body to importer, then it would be easily without any scripts.

An example is below:

component.html:
<!DOCTYPE html>
<div>
     <p class="name">Hong Gildong</p>
     <p class="age">20</p>
</div>


index.html:
<!DOCTYPE html>
<html lang="en-US">
     <head>
         <title>Human Being</title>
     </head>
     <body>
         <link rel="import" href="component.html">
     </body>
</html>
Received on Thursday, 18 June 2015 18:38:58 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:31 UTC