Re: [webcomponents]: Scope of <link rel=components>, was: Naming the Baby

On Wed, 03 Apr 2013 09:55:33 +0200, Scott Miles <sjmiles@google.com> wrote:

>> Why don't we use <script> as the mechanism to import a component?
>
> One of the primary advancements of Custom Elements spec lies in the  
> ability
> to combine HTML (templates), scoped CSS, and JavaScript into
> encapsulations. General HTML markup is an ideal vehicle.
>
> Specific syntaxes are still under debate, but this is the kind of thing  
> we
> do using the polyfills:
>
> <element name='x-bundle-of-awesome'>
>   <template>
>     <style>
>        /* scoped to this element */
>     </style>
>     <!-- Shadow DOM markup -->
>   </template>
>   <script>
>
>      // this === <element>
>
>      this.register({ /* controller prototype */});
>    </script>
> </element>

I don't understand how the above answers my question.

-- 
Simon Pieters
Opera Software

Received on Wednesday, 3 April 2013 21:23:48 UTC