-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mask-properties' of github.com:Siteimprove/alfa into ma…
…sk-properties
- Loading branch information
Showing
199 changed files
with
2,593 additions
and
1,546 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@siteimprove/alfa-aria](./alfa-aria.md) > [Element](./alfa-aria.element.md) > [allowedAttributes](./alfa-aria.element.allowedattributes.md) | ||
|
||
## Element.allowedAttributes() method | ||
|
||
The attributes that are allowed on this element, taking into consideration ARIA in HTML conformance requirements. See [https://w3c.github.io/html-aria/\#docconformance](https://w3c.github.io/html-aria/#docconformance) | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
allowedAttributes(): ReadonlyArray<Attribute.Name>; | ||
``` | ||
**Returns:** | ||
|
||
ReadonlyArray<[Attribute.Name](./alfa-aria.attribute.name.md)<!-- -->> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@siteimprove/alfa-aria](./alfa-aria.md) > [Element](./alfa-aria.element.md) > [isAttributeAllowed](./alfa-aria.element.isattributeallowed.md) | ||
|
||
## Element.isAttributeAllowed() method | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
isAttributeAllowed(attribute: Attribute.Name): boolean; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| attribute | [Attribute.Name](./alfa-aria.attribute.name.md) | | | ||
|
||
**Returns:** | ||
|
||
boolean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
|
||
## Cache.has() method | ||
|
||
Tests whether a given key exists in the cache. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@siteimprove/alfa-cache](./alfa-cache.md) > [Cache](./alfa-cache.cache.md) > [Key](./alfa-cache.cache.key.md) | ||
|
||
## Cache.Key type | ||
|
||
Allowed keys in a Cache. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
type Key = object; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@siteimprove/alfa-cache](./alfa-cache.md) > [Cache](./alfa-cache.cache.md) > [memoize](./alfa-cache.cache.memoize.md) | ||
|
||
## Cache.memoize() function | ||
|
||
Memoizes a method. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
function memoize<This, Args extends Array<Key>, Return>(target: (this: This, ...args: Args) => Return): (this: This, ...args: Args) => Return; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| target | (this: This, ...args: Args) => Return | | | ||
|
||
**Returns:** | ||
|
||
(this: This, ...args: Args) => Return | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@siteimprove/alfa-cache](./alfa-cache.md) > [Cache](./alfa-cache.cache.md) > [memoize](./alfa-cache.cache.memoize_1.md) | ||
|
||
## Cache.memoize() function | ||
|
||
Memoizes a function | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
function memoize<Args extends Array<Key>, Return>(target: (...args: Args) => Return): (...args: Args) => Return; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| target | (...args: Args) => Return | | | ||
|
||
**Returns:** | ||
|
||
(...args: Args) => Return | ||
|
||
## Remarks | ||
|
||
When memoizing a recursive function, care must be taken to also memoize the recursive calls. This is best done by wrapping an anonymous function that recurses on the memoized function: `const foo = Cache.memoize(function (x: A): B { … foo(x2) … }` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
**Signature:** | ||
|
||
```typescript | ||
alfaVersion = "0.95.0" | ||
alfaVersion = "0.96.0" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@siteimprove/alfa-rules](./alfa-rules.md) > [experimentalRules](./alfa-rules.experimentalrules.md) > [R115](./alfa-rules.experimentalrules.r115.md) | ||
|
||
## experimentalRules.R115 variable | ||
|
||
This rule always asks Whether the heading is descriptive. This is not a nice experience for the end user and shouldn't be used until backend can automatically determine the answer. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
_default: Rule.Atomic<Page, Element<string>, Question.Metadata, Element<string>> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.