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

       Web browser: Internet Explorer
            Bug ID: 42858
           Summary: Vector CSS rule for behavior points to a non-existent
                    file
           Product: Wikimedia
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Viewing Wikipedia with vector skin has the following HTML right before the end
of the ending </head> tag:

 <!--[if lt IE 7]><style
type="text/css">body{behavior:url("/w/skins-1.21wmf5/vector/csshover.min.htc")}</style><![endif]-->

That points to http://en.wikipedia.org/w/skins-1.21wmf5/vector/csshover.min.htc
which responds with a HTTP 404/Not found error

This HTML is inserted at function initPage in Vector.php:

 // Append CSS which includes IE only behavior fixes for hover support -
 // this is better than including this in a CSS fille since it doesn't
 // wait for the CSS file to load before fetching the HTC file.
 $min = $this->getRequest()->getFuzzyBool( 'debug' ) ? '' : '.min';
 $out->addHeadItem( 'csshover',
     '<!--[if lt IE 7]><style type="text/css">body{behavior:url("' .
         htmlspecialchars( $wgLocalStylePath ) .
         "/{$this->stylename}/csshover{$min}.htc\")}</style><![endif]-->"
 );


So maybe $wgLocalStylePath is misconfigured in WMF.

That "behavior:..." in the CSS rule only affects Internet Explorer, but if the
problem is $wgLocalStylePath then the problem can affect other parts of the
site.

Note that if instead of
http://en.wikipedia.org/w/skins-1.21wmf5/vector/csshover.min.htc we get
http://en.wikipedia.org/w/skins/vector/csshover.min.htc , the file exists
there. Other MediaWiki installations outside WMF has the correct location of
that file

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to