A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Component Model Strawman: Isolation: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
(Replaced content with 'Stub.')
No edit summary
Line 1: Line 1:
Stub.
 
= Overview =
 
= Loading a HTML Resource as a Component Definition =
 
 
The element registration and template definition are also done in a separate HTML.
Effective markup vocabulary for the defining HTML is limited.
Agents only recognize a head element as a child of the root element when the HTML document is loaded as required.
 
<pre>
 
<html>
  <head>
    <element for="x-comment">..</element>
  </head>
</html>
 
</pre>
 
The host element can load the html with element definition using a <tt>link</tt> element with its <tt>rel</tt> attribute set to <tt>component</tt>.
 
<pre>
 
<html>
  <head>
    <link rel=”component” type=”text/html” href="comment.html">
  </head>
</html>
 
</pre>

Revision as of 20:43, 27 October 2011

Overview

Loading a HTML Resource as a Component Definition

The element registration and template definition are also done in a separate HTML. Effective markup vocabulary for the defining HTML is limited. Agents only recognize a head element as a child of the root element when the HTML document is loaded as required.


<html>
  <head>
    <element for="x-comment">..</element>
  </head>
</html>

The host element can load the html with element definition using a link element with its rel attribute set to component.


<html>
  <head>
    <link rel=”component” type=”text/html” href="comment.html">
  </head>
</html>