added a case for getting by tagName.
get should return empty array if nothing found.