cssText after DOM insertion.
* (bug 30711) When adding a new section to a page with section=new, the text is
now always added to the current version of the page
+* (bug 31719) Recognize &ns_svg; as the svg namespace when extracting width
=== API changes in 1.19 ===
* (bug 19838) siprop=interwikimap can now use the interwiki cache.
const DEFAULT_WIDTH = 512;
const DEFAULT_HEIGHT = 512;
const NS_SVG = 'http://www.w3.org/2000/svg';
+ const ADOBE_SVG_ENTITY = '&ns_svg;';
private $reader = null;
private $mDebug = false;
$keepReading = $this->reader->read();
}
- if ( $this->reader->localName != 'svg' || $this->reader->namespaceURI != self::NS_SVG ) {
+ # Note, entities not expanded in namespaceURI - bug 31719
+ if ( $this->reader->localName != 'svg' ||
+ ( $this->reader->namespaceURI != self::NS_SVG &&
+ $this->reader->namespaceURI != self::ADOBE_SVG_ENTITY ) ) {
throw new MWException( "Expected <svg> tag, got ".
$this->reader->localName . " in NS " . $this->reader->namespaceURI );
}