Polyfill node types in browsers without DOM level 2
authorStephane Bisson <sbisson@wikimedia.org>
Thu, 16 Apr 2015 14:06:30 +0000 (10:06 -0400)
committerStephane Bisson <sbisson@wikimedia.org>
Mon, 20 Apr 2015 19:05:47 +0000 (15:05 -0400)
commit5edae663bc72d7070bd36863bcc014d2cc807f92
treedc4b2841c0ba6efb13b7873e29ac56357f168227
parentbddd43811e355b22ad66affe22f7fb4253e399d1
Polyfill node types in browsers without DOM level 2

mediawiki.jqueryMsg.js:1144 was blowing up on Node.TEXT_NODE
because window.Node is undefined in IE8. The exception was ignored
and this was causing a message containing {{PLURAL...}} or
{{GENDER...}} to be rendered as is.

Bug: T87118
Change-Id: I8c5c2ae74b68eeabd93bb5b81a3061bcb31f6549
resources/Resources.php
resources/src/dom-level2-skip.js [new file with mode: 0644]
resources/src/polyfill-nodeTypes.js [new file with mode: 0644]