You get can a list of nodes going through an insertion point from
getDistributedNodes():

<content id="c"></content>

domReady: function() {
  var nodes = this.$.c.getDistributedNodes();
  for (var i = 0, el; el = nodes[i]; ++i) {
    el.setAttribute('foo', 'bar');
  }
}

See
http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom-301/#toc-distributed-nodes

BTW, only top-level children are selectable in an insertion point:
http://jsbin.com/yeveledi/1/edit




On Sun, Jun 29, 2014 at 3:51 PM, <[email protected]> wrote:

> I have a custom element that uses the select attribute to divide content
> between two <content> tags within itself. I need one of these to add a
> attribute to the content first level children. How would I go about this?
> Thanks
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/4e734ab9-eb26-4858-b648-f1b29f00f52e%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/4e734ab9-eb26-4858-b648-f1b29f00f52e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CACGqRCBL7g_iCH-OUbY02CRJ5FwYUCNJObQuqYg0LP1G0bHUUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to