Author: damien
Description:
When using the 'application/xhtml+xml' content type document.write() function do not work
in 'skins/common/wikibits.js'. You should instead use the DOM.
I use this to select the content type based on the browser's HTTP_ACCEPT:
$wgMimeType = in_array('application/xhtml+xml', array_map('trim', explode(',',
$_SERVER['HTTP_ACCEPT']))) ? 'application/xhtml+xml' : 'text/html';
I will include a patch, but I will not work on (at least not anytime soon) addButton() or
addInfobox() as I currently do not understand them. I first noticed this bug concerning
the DOM with showTocToggle().
The patch has had the showTocToggle() tested on Opera 7.54u2, Mozilla Firefox 1.0.2 and
Internet Explorer 6. The 'special stylesheet links' has not been tested.
In addition to this bug, Opera should use document.createElementNS() rather than document.
createElement(). Internet Explorer does not support document.createElementNS, so a check
should be performed before using it. This was first discovered in tabbedprefs(), which has
also been included in the patch and tested.
Version: 1.4.x
Severity: normal
OS: Windows XP
Platform: PC