If I have a custom riot tag with a p in it like this:
<custom>
<p>This is a text</p>
</custom>
How do I access the <p> element from within the <custom> tag?
Update: I've received a whole bunch answers that are of ways to select it from the DOM. What I want is a way to select the inner p tag from within the component library riot.js itself. I'm looking for a more riotjs specific answer. For example with polymer you use this.$.content.getDistributedNodes().