fix(dialog): IE8 fix to not set data() against text nodes

Closes #328