Skip to content
Advertisement

Tag: selectors-api

querySelector not detecting element until it’s inspected

My problem appears to be quite similar to this problem: Document.querySelector returns null until element is inspected using DevTools, however there are some significant differences that are quite confusing and suggest that the problem may be different. I’m trying to write code that replaces text in the input box on Google Chat, so I am using document.querySelector. The input field

Advertisement