https://bugzilla.wikimedia.org/show_bug.cgi?id=34542

--- Comment #7 from Michael M. <[email protected]> 2012-02-22 09:03:31 UTC 
---
(In reply to comment #3)
> There is code in mediawiki.js that ensures that document.write() is not used
> after document ready. I don't know how we'd prevent this in a better way.

https://developer.mozilla.org/en/html/element/script#Attributes says:
"In Firefox 4.0, the async DOM property defaults to true for script-created
scripts" (i.e. almost all scripts in a typical page served by MediaWiki are
async scripts) and "Never call document.write() from an async script. In Gecko
1.9.2, calling document.write() has an unpredictable effect. In Gecko 2.0,
calling document.write() from an async script has no effect (other than
printing a warning to the error console)." And I don't think that 'never' means
'only before document ready'. The English warning is "A call to
document.write() from an asynchronously-loaded external script was ignored."

Since no gadgets are working at the moment (probably some caching issues) I
can't test the bug, but I'm quite sure that this really is a bug that needs to
be fixed as soon as possible.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to