please use getElementsByTagName.
FYI, http://jsperf.com/queryselectorall-vs-getelementsbytagname