Using the latest version of the FireFox (40.0.3) on Mac:
Run the following code:
$(function() {
var $sc = $('<script id="tempScript" type="text/template"/>');
$("body").append($sc);
$("<div><h3>Hi</h3></div>").appendTo($sc);
});
Then in the console run:
$("#tempScript").html()
Actual result: result is "undefined"
Expected result:
It should have returned: "<div><h3>Hi</h3></div>"
This is very serious problem and has effected a lot of our web applications functionality. Basically has broken a lot of pages of our applications.
Is there a workaround for this? We would have to use Javascript to generate the dynamic content.
UPDATE: I changed the script tag to a hidden DIV and Firefox started to respond. This is a good workaround for the time being, but I am surprised why Firefox would not handle the situation correctly when script template is used.
Hi
Hi
Hi