I'm playing with Riot.js and everything is working great. But let's say I have a page where I mounted this single tag:
<so-example>
<input type="text />
<script>
this.disabled = false
</script>
</so-example>
Let's say I want to query this element for one of its properties (e.g. if it's disabled). Neither of these two approaches work:
document.getElementsByTagName('so-example')[0].disabled
document.querySelector('so-example').disabled
Both of these statements return undefined
. I want my tag's DOM API to reflect its state, but can't figure out what I'm missing here.