Add has_attr method to TElement. …
If this is all the information the caller needs, we can get it from gecko without worrying about atomization and string conversions.