|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
707 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports["default"] = getComputedRole;
|
|---|
| 7 | var _getExplicitRole = _interopRequireDefault(require("./getExplicitRole"));
|
|---|
| 8 | var _getImplicitRole = _interopRequireDefault(require("./getImplicitRole"));
|
|---|
| 9 | function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|---|
| 10 | /**
|
|---|
| 11 | * Returns an element's computed role, which is
|
|---|
| 12 | *
|
|---|
| 13 | * 1. The valid value of its explicit role attribute; or
|
|---|
| 14 | * 2. The implicit value of its tag.
|
|---|
| 15 | */
|
|---|
| 16 | function getComputedRole(tag, attributes) {
|
|---|
| 17 | return (0, _getExplicitRole["default"])(tag, attributes) || (0, _getImplicitRole["default"])(tag, attributes);
|
|---|
| 18 | }
|
|---|
| 19 | module.exports = exports.default; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.