getElementsByTagName is faster but is it really a place where performance is very important here ?  querySelector leads to more readable code.