Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions axe.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ declare namespace axe {
| 'sectionhead';

type HtmlContentTypes =
| 'flow'
| 'sectioning'
| 'heading'
| 'phrasing'
| 'embedded'
| 'interactive';
'flow' | 'sectioning' | 'heading' | 'phrasing' | 'embedded' | 'interactive';

// Array of length 2 or greater
type MultiArray<T> = [T, T, ...T[]];
Expand All @@ -65,10 +60,7 @@ declare namespace axe {

// Context options
type Selector =
| Node
| BaseSelector
| LabelledShadowDomSelector
| LabelledFramesSelector;
Node | BaseSelector | LabelledShadowDomSelector | LabelledFramesSelector;
type SelectorList = Array<Selector | FramesSelector> | NodeList;
type ContextProp = Selector | SelectorList;
type ContextObject =
Expand All @@ -85,9 +77,7 @@ declare namespace axe {
type ElementContext = ContextSpec;

type SerialSelector =
| BaseSelector
| LabelledShadowDomSelector
| LabelledFramesSelector;
BaseSelector | LabelledShadowDomSelector | LabelledFramesSelector;
type SerialFrameSelector = SerialSelector | FramesSelector;
type SerialSelectorList = Array<SerialFrameSelector>;

Expand Down Expand Up @@ -310,8 +300,7 @@ declare namespace axe {
virtualNode: VirtualNode
) => boolean | undefined | void);
after?:
| string
| ((results: AfterResult[], options: unknown) => AfterResult[]);
string | ((results: AfterResult[], options: unknown) => AfterResult[]);
options?: any;
matches?: string;
enabled?: boolean;
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test/integration/full/contrast/prototype-lib-1.7.3.js
Original file line number Diff line number Diff line change
Expand Up @@ -2566,7 +2566,7 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
if (workaround) {
div.innerHTML = `&#160;${t[0]}${html}${t[1]}`;
div.removeChild(div.firstChild);
for (var i = t[2]; i--; ) div = div.firstChild;
for (var i = t[2]; i--;) div = div.firstChild;
} else {
div.innerHTML = html;
}
Expand Down Expand Up @@ -6002,15 +6002,15 @@ Prototype._original_property = window.Sizzle;

lt: createPositionalPseudo((matchIndexes, length, argument) => {
let i = argument < 0 ? argument + length : argument;
for (; --i >= 0; ) {
for (; --i >= 0;) {
matchIndexes.push(i);
}
return matchIndexes;
}),

gt: createPositionalPseudo((matchIndexes, length, argument) => {
let i = argument < 0 ? argument + length : argument;
for (; ++i < length; ) {
for (; ++i < length;) {
matchIndexes.push(i);
}
return matchIndexes;
Expand Down
3 changes: 1 addition & 2 deletions test/integration/rules/color-contrast/color-contrast.html
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,7 @@
</div>

<textarea id="pass24" style="background-color: white; color: black">
Hello world</textarea
>
Hello world</textarea>

<div style="position: relative; z-index: 1; width: 200px; height: 200px">
<div style="position: absolute">
Expand Down
Loading