Bug for Samsung H1 and M1

This test paragraph should be red.

The red colour is added to the paragraph by writing a style into the page with JavaScript, like this:

document.write('<style>');
document.write('.writeTest {color: red}');
document.write('</style>');

This works on all browser, and also on the Vodafone Widget Manager for S60. It does not work on the Samsung H1 and M1.