Fix for IE9 bug

This allows tests for "dialog" to work in IE9.