I've noticed that I can access a DOM element without creating any variable or ref.
I haven't found anything in the documentation about this. It's like you can access all elements with IDs without creating pre-references. Is this normal or is it a bug?
<script setup>
import { onMounted } from "vue";
onMounted(() => {
// How is this possible?
customId.innerText = "Hello"
});
</script>
<template>
<div id="customId">Hi</div>
</template>
Thanks in advance!