properly inherit tagName
querySelector fixes