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

HTML Import for Web Designers

From: Rahly <hungry.rahly@gmail.com>
Date: Thu, 9 Apr 2015 04:46:55 -0400
Message-ID: <CAK1p7ZWd3CgZ9P+uU_dy7vaWZOxXSkf5vurXs83OCQhpBuy8hA@mail.gmail.com>
To: public-webapps@w3.org
I've tried searching for messages regarding duplicate custom elements, but
I haven't found anything.  Has this been addressed?  It seems that if a web
designer wants to use multiple libraries that may register the same tag
names, this would prevent the web designer from using said components until
they rewrote the underlying component to rename it.

It would be nice if the web designer could use components without fear of
having to rewrite someone else's components.

<link rel="import" href="toolset1/toolbar.html" namespace="tool1" />
<link rel="import" href="toolset2/toolbar.html" namespace="tool2" />

where if the component code calls

var ele = document.registerElement("x-toolbar");

it would instead create <tool1-x-toolbar> and <tool2-x-toolbar>
respectively.  If the designer wants to know what tag he actually received,

ele.tagName ( should report the actual registered name )

Also any <link>s in the component would get that namespace as well.
Received on Thursday, 9 April 2015 12:05:40 UTC

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