Fix setter so IE7/8 can set text of style element

This is based on Arian's fix on his `fix-2265-text branch`.
(could not cherry-pick the commit because file contents and directory
structure have changed too much since his last commit)