Editing querySelector vs querySelectorAll vs getElementById vs getElementsByClassName vs getElementsByTagName vs getElementsByName (scope by form)

This edit will create a new revision.

Your details (optional)

Test case details

Preparation code

Include JavaScript libraries as follows: <script src="//cdn.ext/library.js"></script>

Code snippets to compare

Test 1

Test 2

Test 3

Test 4

Test 5

Test 6

Test 7

Test 8

Test 9

Test 10

Test 11

Test 12