Looks to me like it's irrelevant to the tests what the src is or even what kind of element it is. They're just matching up the node name and the tag name in various ways.