Add support for id, className, tagName [fixes #5]