correct documentation: tagName should be validate

After a while debugging i found out that the documentation is wrong:

Fix for issue #6 (Unexpected behaviour when using the provided example):