I have an input element nested inside my custom element and I want to tamper the input element from my custom element. I don't want to use shadow DOM and slots to do it.
connectedCallback () {
const template = document.createElement("template");
template.innerHTML = templateDiv;
this.appendChild(template.content);
console.log(this.querySelector('input'))
console.log(this.firstElementChild)
}
Everything works OK on Firefox. But on Chromium, I can not access the child element from the custom element. When querying for the input element with this.querySelector, I just get null on Chromium.
Could this be considered as a bug in Chromium or is it just that Firefox does more than it should?