From: Bartosz DziewoƄski Date: Thu, 18 Feb 2016 02:07:08 +0000 (+0100) Subject: Avoid parsing HTML when creating nodes X-Git-Tag: 1.31.0-rc.0~7922 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=23fbf4aa221eae83196e63475cc55c4677e0abc2;p=lhc%2Fweb%2Fwiklou.git Avoid parsing HTML when creating nodes We used to create them like $( '' ), which actually does HTML parsing under the hood, because on IE 8 and lower trying to change the 'type' of an node throws an exception. But we dropped support for IE 8 recently and no longer need to do that. Upstream change for OOjs UI is I166f5ab0dce5ab47dc6a1f4e2e5ad012635911ed. Find: \$\( '' \) Replace with: $( '' ).attr( 'type', '\1' ) Change-Id: Ie86f8917e8ce100de22006516daa542ad178aab6 --- diff --git a/resources/src/mediawiki.special/mediawiki.special.search.js b/resources/src/mediawiki.special/mediawiki.special.search.js index 730119e862..ab83e1af2f 100644 --- a/resources/src/mediawiki.special/mediawiki.special.search.js +++ b/resources/src/mediawiki.special/mediawiki.special.search.js @@ -16,14 +16,14 @@ $( '