Resolves an issue for DialogOnResizeTestCase

Resolves an issue for DialogOnResizeTestCase (and possibly others) where there is an assumption that the HTML element will contain a style attribute.