You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ The Accessible Name Computation Prototype
7
7
To ensure interoperability, the W3C Alternative Text Computation must be supported in all browsers equally.
8
8
9
9
The AccName Prototype mirrors the development of the W3C AccName specification, which will be updated accordingly with all expected behaviors as this development continues within the W3C ARIA Working Group.
@@ -683,32 +683,6 @@ Plus roles extended for the Role Parity project.
683
683
skip=true;
684
684
}
685
685
686
-
varisFigure=
687
-
!skipTo.tag&&
688
-
!skipTo.role&&
689
-
!hasName&&
690
-
(nRole==="figure"||(!nRole&&nTag==="figure"));
691
-
692
-
// Otherwise, if name is still empty and is a standard figure element with a non-empty associated figcaption element as the first or last child node, process caption with same naming computation algorithm.
693
-
// Plus do the same for role="figure" with embedded role="caption", or a combination of these.
694
-
if(isFigure){
695
-
fChild=
696
-
firstChild(node,["figcaption"],["caption"])||
697
-
lastChild(node,["figcaption"],["caption"])||
698
-
false;
699
-
if(fChild){
700
-
name=trim(
701
-
walk(fChild,stop,false,[],false,{
702
-
ref: ownedBy,
703
-
top: fChild
704
-
}).name
705
-
);
706
-
}
707
-
if(trim(name)){
708
-
hasName=true;
709
-
}
710
-
}
711
-
712
686
// Otherwise, if name is still empty and the root node and the current node are the same and node is an svg element, then parse the content of the title element to set the name and the desc element to set the description.
0 commit comments