axe-core
Advanced tools
Comparing version 4.10.0-canary.95730fa to 4.10.0-canary.9673d21
27
axe.d.ts
@@ -345,2 +345,5 @@ // Type definitions for axe-core | ||
toJSON(): SerialDqElement; | ||
} | ||
interface DqElementConstructor { | ||
new (elm: Element, options?: { absolutePaths?: boolean }): DqElement; | ||
mergeSpecs( | ||
@@ -409,2 +412,20 @@ childSpec: SerialDqElement, | ||
interface CustomNodeSerializer<T = SerialDqElement> { | ||
toSpec: (dqElm: DqElement) => T; | ||
mergeSpecs: (nodeSpec: T, parentFrameSpec: T) => T; | ||
} | ||
interface NodeSerializer { | ||
update: <T>(serializer: CustomNodeSerializer<T>) => void; | ||
toSpec: (node: Element | VirtualNode) => SerialDqElement; | ||
dqElmToSpec: ( | ||
dqElm: DqElement | SerialDqElement, | ||
options?: RunOptions | ||
) => SerialDqElement; | ||
mergeSpecs: ( | ||
nodeSpec: SerialDqElement, | ||
parentFrameSpec: SerialDqElement | ||
) => SerialDqElement; | ||
} | ||
interface Utils { | ||
@@ -428,6 +449,3 @@ getFrameContexts: ( | ||
DqElement: new ( | ||
elm: Element, | ||
options?: { absolutePaths?: boolean } | ||
) => DqElement; | ||
DqElement: DqElementConstructor; | ||
uuid: ( | ||
@@ -438,2 +456,3 @@ options?: { random?: Uint8Array | Array<number> }, | ||
) => string | Uint8Array | Array<number>; | ||
nodeSerializer: NodeSerializer; | ||
} | ||
@@ -440,0 +459,0 @@ |
@@ -790,3 +790,3 @@ { | ||
"fail": "Form element does not have an implicit (wrapped) <label>", | ||
"incomplete": "Unable to determine if form element has an implicit (wrapped} <label>" | ||
"incomplete": "Unable to determine if form element has an implicit (wrapped) <label>" | ||
}, | ||
@@ -793,0 +793,0 @@ "label-content-name-mismatch": { |
@@ -5,6 +5,6 @@ # Localizations | ||
To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a json file with the default English text in it for you to translate. Alternatively, you could copy `_template.json`. | ||
To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a JSON file with the default English text in it for you to translate. Alternatively, you could copy `_template.json`. | ||
To update an existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages which were not used in English. | ||
To update an existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages that are no longer used in English. | ||
`_template.json` is a generated file which is created every time axe is built. It's compiled using each rules' `description` and `help` properties as well as each checks' `metadata.messages` property. To update the `_template.json` file you'll need to update the corresponding [rule](../lib/rules) or [check](../lib/checks) metadata file and rebuild. | ||
`_template.json` is a generated file which is created every time axe is built. It's compiled using each rule's `description` and `help` properties, as well as each check's `metadata.messages` property. To update the `_template.json` file you'll need to update the corresponding [rule](../lib/rules) or [check](../lib/checks) metadata file and rebuild. |
{ | ||
"name": "axe-core", | ||
"description": "Accessibility engine for automated Web UI testing", | ||
"version": "4.10.0-canary.95730fa", | ||
"version": "4.10.0-canary.9673d21", | ||
"license": "MPL-2.0", | ||
@@ -6,0 +6,0 @@ "engines": { |
@@ -386,6 +386,6 @@ { | ||
}, | ||
"4.10.0-canary.95730fa": { | ||
"axe.js": "sha256-NbgUN9Zwm67qqGhVUEOpjTu2EeEl1QNk3vWBCjhbwXE=", | ||
"axe.min.js": "sha256-TLaVoFUZ8AV2dHSuhF5EBLdoho+zr9nTiaK5n0evvVk=" | ||
"4.10.0-canary.9673d21": { | ||
"axe.js": "sha256-78ogvI6JWrR2JjQ6QFbK3Jf4cys3xwNlWgpOIDx0jfs=", | ||
"axe.min.js": "sha256-JiLxtFaYTZVyAhMWMX45C+6nQ3dXeFn8cvv1lMC1VZg=" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2878560
27
51116