blob: 8a24e38f31c7e3da464fea74110644fcbba6378a [file] [log] [blame]
Non-hidden div for comparison
non-hidden treeitem
hidden non-treeitem
Buttons are leaf nodes
Descendant of aria-hidden node
List item also presentational
Div in list isn't presentational
Content within label refers to label container
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": false,
"role": {
"type": "internalRole",
"value": "Div"
},
"name": {
"type": "computedString",
"value": "",
"sources": [
{
"type": "relatedElement",
"attribute": "aria-labelledby"
},
{
"type": "attribute",
"attribute": "aria-label"
},
{
"type": "attribute",
"attribute": "title"
}
]
},
"properties": []
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": false,
"role": {
"type": "role",
"value": "treeitem"
},
"name": {
"type": "computedString",
"value": "non-hidden treeitem",
"sources": [
{
"type": "relatedElement",
"attribute": "aria-labelledby"
},
{
"type": "attribute",
"attribute": "aria-label"
},
{
"type": "contents",
"value": {
"type": "computedString",
"value": "non-hidden treeitem"
}
},
{
"type": "attribute",
"attribute": "title",
"superseded": true
}
]
},
"properties": [
{
"name": "level",
"value": {
"type": "integer",
"value": 1
}
},
{
"name": "checked",
"value": {
"type": "tristate",
"value": "false"
}
},
{
"name": "selected",
"value": {
"type": "boolean",
"value": false
}
}
]
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "ancestorDisallowsChild",
"value": {
"type": "idref",
"relatedNodes": [
{
"nodeResult": "div"
}
]
}
}
],
"role": {
"type": "internalRole",
"value": "Div"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "ancestorDisallowsChild",
"value": {
"type": "idref",
"relatedNodes": [
{
"nodeResult": "div"
}
]
}
}
],
"role": {
"type": "internalRole",
"value": "SVGRoot"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "ancestorIsLeafNode",
"value": {
"type": "idref",
"relatedNodes": [
{
"nodeResult": "button"
}
]
}
}
],
"role": {
"type": "internalRole",
"value": "Unknown"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "ariaHidden",
"value": {
"type": "boolean",
"value": true
}
}
],
"role": {
"type": "internalRole",
"value": "Div"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "ariaHiddenRoot",
"value": {
"type": "idref",
"relatedNodes": [
{
"nodeResult": "div"
}
]
}
}
],
"role": {
"type": "internalRole",
"value": "Div"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": false,
"role": {
"type": "role",
"value": "img"
},
"name": {
"type": "computedString",
"value": "",
"sources": [
{
"type": "relatedElement",
"attribute": "aria-labelledby"
},
{
"type": "attribute",
"attribute": "aria-label"
},
{
"type": "attribute",
"value": {
"type": "computedString",
"value": ""
},
"attribute": "alt",
"attributeValue": {
"type": "string",
"value": ""
}
},
{
"type": "attribute",
"attribute": "title",
"superseded": true
}
]
},
"properties": []
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "presentationalRole",
"value": {
"type": "boolean",
"value": true
}
}
],
"role": {
"type": "role",
"value": "none"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "inheritsPresentation",
"value": {
"type": "idref",
"relatedNodes": [
{
"nodeResult": "ol"
}
]
}
}
],
"role": {
"type": "role",
"value": "listitem"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": false,
"role": {
"type": "internalRole",
"value": "Div"
},
"name": {
"type": "computedString",
"value": "",
"sources": [
{
"type": "relatedElement",
"attribute": "aria-labelledby"
},
{
"type": "attribute",
"attribute": "aria-label"
},
{
"type": "attribute",
"attribute": "title"
}
]
},
"properties": []
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "labelFor",
"value": {
"type": "idref",
"relatedNodes": [
{
"idref": "checkbox",
"nodeResult": "input#checkbox"
}
]
}
}
],
"role": {
"type": "internalRole",
"value": "Label"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "labelContainer",
"value": {
"type": "idref",
"relatedNodes": [
{
"nodeResult": "label"
}
]
}
},
{
"name": "labelFor",
"value": {
"type": "idref",
"relatedNodes": [
{
"idref": "checkbox",
"nodeResult": "input#checkbox"
}
]
}
}
],
"role": {
"type": "internalRole",
"value": "Unknown"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "notRendered",
"value": {
"type": "boolean",
"value": true
}
}
],
"role": {
"type": "internalRole",
"value": "Div"
}
}
]
}
}
{
"id": "<int>",
"result": {
"nodes": [
{
"nodeId": "<string>",
"ignored": true,
"ignoredReasons": [
{
"name": "probablyPresentational",
"value": {
"type": "boolean",
"value": true
}
}
],
"role": {
"type": "internalRole",
"value": "Canvas"
}
}
]
}
}