Ну и вдогонку...
For an arbitrary document, we do the following:
var aList1 = document.getElementsByTagName('a'),
var aList2 = document.querySelectorAll('a');
document.body.appendChild(document.createElement('a'));
alert(aList2.length - aList1.length);
What will be the output? Why?