Last modified: 2012-06-29 14:07:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40032, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38032 - Script error at addStyleTag somewhere in mw-core for IE
Script error at addStyleTag somewhere in mw-core for IE
Status: RESOLVED DUPLICATE of bug 34276
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.20.x
All All
: Unprioritized blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-28 17:36 UTC by Rainer Rillke @commons.wikimedia
Modified: 2012-06-29 14:07 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rainer Rillke @commons.wikimedia 2012-06-28 17:36:27 UTC
Complete stack with code. This bug causes UpWiz not to work.

/*JScript global code JScript*/
//////////////////////////////////////////////
mw.loader.implement("mediawiki.page.ready", function () {
    jQuery(document).ready(function ($) {
        if (!('placeholder' in document.createElement('input'))) {
            $('input[placeholder]').placeholder();
        }
        $('.mw-collapsible').makeCollapsible();
        if ($('table.sortable').length) {
            mw.loader.using('jquery.tablesorter', function () {
                $('table.sortable').tablesorter();
            });
        }
        $('input[type=checkbox]:not(.noshiftselect)').checkboxShiftClick();
        mw.util.updateTooltipAccessKeys();
    });;
}, {
    "": ""
}, {});
 
/*JScript anonymous function JScript*/
//////////////////////////////////////////////
if (allReady(registry[module].dependencies)) {
    execute(module); //         module  "mediawiki.page.ready"  String
}
 
/*execute JScript*/
//////////////////////////////////////////////
if (typeof style === 'string') {
    addInlineCSS(style); //     style   ""      String
 
}
 
/*addInlineCSS JScript*/
//////////////////////////////////////////////
else {
    $newStyle = $(
    addStyleTag(css, getMarker())).data('ResourceLoaderDynamicStyleTag', true); //      css     ""      String
}
 
 
/*addStyleTag JScript*/
//////////////////////////////////////////////
function addStyleTag(text, $nextnode) {
    var s = document.createElement('style');
    s.type = 'text/css';
    s.rel = 'stylesheet';
    if ($nextnode) { //         $nextnode       undefined       Benutzerdefinierter Typ
        if ($nextnode.nodeType) {
            $nextnode = $($nextnode);
        }
        $nextnode.before(s);
    } else {
        document.getElementsByTagName('head')[0].appendChild(s);
    }
    if (s.styleSheet) {
        // ERROR: Ungültiger Prozeduraufruf oder ungültiges Argument
        s.styleSheet.cssText = text; //         s.styleSheet    {...}   Object
        //      s.styleSheet.cssText    ""      String
        //      text    ""      String
 
    } else {
        s.appendChild(document.createTextNode(String(text)));
    }
    return s;
}
 
// No matter what I try to assign to s.styleSheet.cssText, it always throws an error.
// A lot of RL modules are affected
// In debug mode (&debug=true) the error are ignored but the style is missing
Comment 1 Rainer Rillke @commons.wikimedia 2012-06-28 17:40:47 UTC
Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Zeitstempel: Fri, 29 Jun 2012 17:40:26 UTC


Meldung: Ungültiger Prozeduraufruf oder ungültiges Argument
Zeile: 145
Zeichen: 580
Code: 0
URI: http://bits.wikimedia.org/en.wikibooks.org/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20120625T154330Z
Comment 2 Rainer Rillke @commons.wikimedia 2012-06-28 17:45:19 UTC
see also
https://commons.wikimedia.org/wiki/Commons:Help_desk#code
(and all the upwiz-error reports)

This error is also reproducible at en.wikibooks and Wikimedia commons (all 1.20wmf6)
Comment 3 Krinkle 2012-06-28 19:37:08 UTC

*** This bug has been marked as a duplicate of bug 34276 ***
Comment 4 Rainer Rillke @commons.wikimedia 2012-06-29 14:07:17 UTC
Bug 38024 actually "fixed" this bug or made it more unlikely to happen.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links