Closed
Bug 518205
Opened 17 years ago
Closed 15 years ago
Dynamically loaded XHTML content, containing <script>, with AJAX, does not work.
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: gessos.paul, Unassigned)
References
()
Details
(Whiteboard: [CLOSEME 2011-1-1])
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; el; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; el; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Provided URL contains the Firefox workaround.
Reproducible: Always
Steps to Reproduce:
1. Load dynamically with AJAX, XHTML content which contains <script> tags.
2. Add content to document hierarchy.
Actual Results:
Scripts from dynamically loaded content are not working. Working on Opera and Webkit (Safari/Chrome).
Expected Results:
Scripts from dynamically loaded content must work.
WORKAROUND UNTIL A FIX:
-----------------------
// Add 'root' xml node to 'where' element of document
function innerDOM(where, root) {
for (var z = 0; z < root.childNodes.length; z++) {
var e = root.childNodes[z];
if (e.nodeName == 'script' && navigator.userAgent.indexOf('Firefox') != -1) {
if (e.getAttribute('src'))
// add on <head> element a <script> element with attributes 'type' and 'src' as follow.
createTag('script', null, document.getElementsByTagName("head")[0], [['type', 'text/javascript'], ['src', e.getAttribute('src')]]);
else eval(e.text);
} else where.appendChild(e.cloneNode(true));
}
}
Comment 1•15 years ago
|
||
Reporter, are you still seeing this issue with Firefox 3.6.12 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Also, please consider using the most recent Firefox 4 beta build, your bug may be resolved there.
Whiteboard: [CLOSEME 2011-1-1]
Comment 2•15 years ago
|
||
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•