mediawiki.jqueryMsg: Implement HTML support and improve HTML escaping.
authorMatthew Flaschen <mflaschen@wikimedia.org>
Sun, 10 Mar 2013 08:23:43 +0000 (04:23 -0400)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Mon, 8 Apr 2013 20:22:43 +0000 (16:22 -0400)
commit473a27e32ededfef32c1e573d488a5cbb71ca0fc
treecafe3ab9e5680a89495697529f318467736e6123
parent902f5779af3169cd61330e02a12435c8fef905f6
mediawiki.jqueryMsg: Implement HTML support and improve HTML escaping.

* Whitelisted elements.
* Whitelisted attributes allowed on all elements, and additional ones
  per element.
* Currently, only b (bold) and i (italics) and the common attributes are
  implemented, but more can be added.
* Treat error message as text
* Implement appendWithoutParsing as an extra safeguard to ensure
  jQuery never implicitly parses HTML.  Reuse this where a similar
  case was handled one-off.
* Rename some of the link functions and variables to be clearer about
  relationships.

Bug: 44525
Change-Id: Id8902af9568092d0318d0ac9d1ca6c9c195d36fe
RELEASE-NOTES-1.22
resources/mediawiki/mediawiki.jqueryMsg.js
tests/qunit/suites/resources/mediawiki/mediawiki.jqueryMsg.test.js
tests/qunit/suites/resources/mediawiki/mediawiki.test.js