Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.8

Bug #18801 HTML_AJAX.setInnerHTML have problems in firefox 5 or greater
Submitted: 2011-09-07 15:36 UTC
From: piviul Assigned:
Status: Wont fix Package: HTML_AJAX (version 0.5.6)
PHP Version: Irrelevant OS: ANY
Roadmaps: (Not assigned)    
Subscription  


 [2011-09-07 15:36 UTC] piviul (Paolo Sala)
Description: ------------ In Firefox 5 or above when you append or replace a dom element containing scripts these scripts are not reparsed (I have opened the bug https://bugzilla.mozilla.org/show_bug.cgi?id=685098 but I don't know if its a new feature). So if you use replace or append methods of HTML_AJAX or you use directly the setInnerHTML method of HTML_AKAX_Util if the replacing html code contain scripts these are not executed. Test script: ---------------
</body></html> Expected result: ---------------- I expect to see an alert saying "Hello World!" Actual result: -------------- nothing happens.

Comments

 [2011-09-18 13:31 UTC] doconnor (Daniel O'Connor)
Thanks for the report Paolo; but pearweb seems to have eaten your test case. Can Ii get you to pastebin something?
 [2011-09-18 13:31 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
 [2011-09-19 14:34 UTC] piviul (Paolo Sala)
Ok; this is the very little code I wrote: http://pastebin.com/uJfcxmB4 It's a big problem because firefox has marked the bug as I won't fix. The solution I have adopted is to set to false the variable good_browser in HTML_AJAX_Util::setInnerHtml Have a great day Piviul
 [2017-02-02 22:01 UTC] cweiske (Christian Weiske)
-Status: Feedback +Status: Wont fix
Nobody will fix that.