At Backbase we are trying to write support for Safari but we found the following bug: If you try to add a <style> tag dynamicly anywhere inside the DOM-tree throught createElement Safari does nothing (2.x and ToT). I tried different methods / attributes, they all seem to do nothing. innerHTML gives a strange Expection 7 The testcase fails in IE because it wasnt build for it (we got another solution). Mozilla Firefox and Opera are working as supposed with the testcase
Changed severity to critical because this bug prevents development of any kind of Ajax applications
This is a high priority bug to fix, and we should also look for a workaround that the backbase folks can take advantage of.
Created attachment 4590 [details] local copy of test case
Created attachment 4591 [details] Workaround - append to head element Style elements created with createElement and appended to the document head works as required. This appears to only be an issue when appending style information to the body.
Great! We have a workaround. Since style elements are supposed to be in the head, I think it's probably a good workaround.
Given the workaround, downgrading "severity".
This bug is also in Radar: <rdar://4327493>
The patch I attached to 5476 also fixes this bug. If the patch (or a similar one which also fixes this bug) is accepted, then this bug should be marked as a duplicate of 5476.
*** This bug has been marked as a duplicate of 5476 ***