- From: Angelina Fabbro <angelinafabbro@gmail.com>
- Date: Tue, 13 Nov 2012 17:29:21 -0800
- To: Brian Kardell <bkardell@gmail.com>
- Cc: public-webapps@w3.org
- Message-ID: <CAG57-HPWtQ8k92xH5nURtep9s4uN7PZx5j7YZ1hn-d_84N90qg@mail.gmail.com>
To answer Brian: 1. To recap: - A developer can dynamically add and remove individual custom elements to and from the parent document. - A developer cannot dynamically apply or unapply the 'is' attribute to have an element behave like a custom <element> on the fly. Is this correct? Being able to take the host children and remix them into something else on the fly would be fantastic, so I'm a bit disappointed if the above is true. 2. Thanks for that, I'll use that assumption as well. To answer myself in the parent post about accessibility: I found a short explanation in the docs about the tree-as-rendered being traversable in section 8.5 as follows: "User agents with assistive technology traverse the document tree as rendered, and thus enable full use of of WAI-ARIA semantics in the shadow DOM subtrees." So that's good. On Tue, Nov 13, 2012 at 4:50 PM, Brian Kardell <bkardell@gmail.com> wrote: > Brian Kardell :: @bkardell :: hitchjs.com > > On Nov 13, 2012 9:34 AM, "Angelina Fabbro" <angelinafabbro@gmail.com> > wrote: > > > > Hello public-webapps, > > > > I'm Angelina, and I've been very interested in shadow DOM and web > components for some time now. So much so that I've tried to teach people > about them several times. There's a video from JSConfEU floating around on > Youtube if you're interested . I think I managed to get the important parts > right despite my nerves. I've given this sort of talk four times now, and > as a result I've collected some feedback and questions from the developers > I've talked to. > > > > 1. It looks like from the spec and the code in Glazkov's polyfill that > if I add and remove the 'is' attribute, the shadow tree should > apply/unapply itself to the host element. > > Two things: 1. Added in markup or dynamically? The draft says it can't be > added dynamically just in case... 2. The draft itself is a little unclear > on "is". Early in the text, the reference was changed to say that these > will be custom tags, in other words <x-map> instead of <select > is="x-map">. Mozilla's x-tags is currently operating under that assumption > as well. > > > I've not found this to be the case. See my examples for 2. below - I > tried applying and unapplying the 'is' attribute to remix the unordered > list using a template without success. > > > > > > > >
Received on Wednesday, 14 November 2012 01:30:29 UTC