aria-api

access ARIA information from JavaScript
git clone https://git.ce9e.org/aria-api.git

commit
fb5538c5350e621eae5d1cdaedca151ef903f0f4
parent
536ddd3c948fd0d26b2645e88a916f8b2f4219a0
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-02-02 15:36
rm outdated polyfill

Diffstat

M test/index.html 19 -------------------

1 files changed, 0 insertions, 19 deletions


diff --git a/test/index.html b/test/index.html

@@ -10,25 +10,6 @@
   10    10     <script src="../node_modules/mocha/mocha.js"></script>
   11    11     <script src="../node_modules/expect/umd/expect.js"></script>
   12    12 
   13    -1     <script>
   14    -1         // polyfill for phantomjs
   15    -1         // https://developer.mozilla.org/en/docs/Web/API/Element/matches
   16    -1         if (!Element.prototype.matches) {
   17    -1             Element.prototype.matches =
   18    -1                 Element.prototype.matchesSelector ||
   19    -1                 Element.prototype.mozMatchesSelector ||
   20    -1                 Element.prototype.msMatchesSelector ||
   21    -1                 Element.prototype.oMatchesSelector ||
   22    -1                 Element.prototype.webkitMatchesSelector ||
   23    -1                 function(s) {
   24    -1                     var matches = (this.document || this.ownerDocument).querySelectorAll(s),
   25    -1                         i = matches.length;
   26    -1                     while (--i >= 0 && matches.item(i) !== this) {}
   27    -1                     return i > -1;
   28    -1                 };
   29    -1         }
   30    -1     </script>
   31    -1 
   32    13     <script src="../dist/aria.js"></script>
   33    14 
   34    15     <script>mocha.setup('bdd')</script>