Bug 1048780 - Call the standard matches() rather than the proprietary mozMatchesSelector(); r=jst

This also includes a test that mozMatchesSelector is still exposed and works.
This commit is contained in:
Ms2ger
2014-08-12 14:30:59 +02:00
parent 50af20f036
commit d179b4ae59
72 changed files with 197 additions and 185 deletions

View File

@@ -4,7 +4,7 @@
it should be affected by :-moz-ui-valid pseudo-class. -->
<link rel='stylesheet' type='text/css' href='style.css'>
<body onload="document.getElementById('i').checked = false;
if (!document.getElementById('i').mozMatchesSelector(':-moz-ui-valid')) {
if (!document.getElementById('i').matches(':-moz-ui-valid')) {
document.body.textContent='FAIL';
} else {
document.body.textContent='SUCCESS';