Ignore exceptions from document.querySelector()
authorRoan Kattouw <roan.kattouw@gmail.com>
Tue, 15 Sep 2015 13:25:36 +0000 (15:25 +0200)
committerOri.livneh <ori@wikimedia.org>
Tue, 15 Sep 2015 16:01:57 +0000 (16:01 +0000)
commit7e5d2b90e31d77d68604a6420e3c8c67727cda6b
tree427ff297196fd1918ed627ffb5522e17bc297380
parent56f708070aac226513178ee4be4da68c63fe33eb
Ignore exceptions from document.querySelector()

In Firefox and Safari, passing selectors with pseudo-elements
into querySelector() can cause it to throw an exception.
Ignore these exceptions rather than aborting the selector audit.

Bug: T112650
Change-Id: I9a1bd5eb6ff5ea11eb70ff5bda994b4e51d2431e
resources/src/mediawiki/mediawiki.inspect.js