IE9 compatability

This allows tests for "dialog" to work in IE9.

My IE9 understanding is too limited to know why.  I wish I did.