Page MenuHomePhabricator

xslt parameter of api, should insert a stylesheet with type text/xsl, not text/xml
Closed, ResolvedPublic

Description

When you use the xslt parameter of the api. it inserts a line of the form:

<?xml-stylesheet href="/w/index.php?title=MediaWiki:extractFirst.xsl&amp;action=raw" type="text/xml" ?>

This should be

<?xml-stylesheet href="/w/index.php?title=MediaWiki:extractFirst.xsl&amp;action=raw" type="text/xsl" ?>

As all browsers recognize text/xsl (despite it being technically "non-standard"), well text/xml is not recognized by internet explorer. See [[w:Xslt#XSLT_media_types]].

Cheers,
Bawolff


Version: 1.16.x
Severity: minor
URL: http://en.wiktionary.org/w/api.php?action=parse&prop=text&page=word&format=xml&lang=en&xslt=MediaWiki:extractFirst.xsl

Details

Reference
bz20939

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:57 PM
bzimport set Reference to bz20939.
  • This bug has been marked as a duplicate of bug 19528 ***