This is for testing on localhost (run npx serve at project root). Does not work on file:// protocol.

Target test file:

Document querySelector: