Add support for <dialog> tag.

fixes #2017
Add support for <dialog> tag's open attribute.
Merge pull request #2033 from pekim/master

Add support for <dialog> tag.