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
ConformsTo[]A11yProfile`json:"conformsTo,omitempty"`// An established standard to which the described resource conforms.
16
+
ConformsToA11yProfileList`json:"conformsTo,omitempty"`// An established standard to which the described resource conforms.
16
17
Certification*A11yCertification`json:"certification,omitempty"`// Certification of accessible publications.
17
18
Summarystring`json:"summary,omitempty"`// A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."
18
19
AccessModes []A11yAccessMode`json:"accessMode,omitempty"`// The human sensory perceptual system or cognitive faculty through which a person may process or perceive information.
func (pA11yProfile) Compare(otherA11yProfile) int {
220
+
// Compare based on the compatibility level
221
+
ifp==other {
222
+
return0
223
+
}
224
+
225
+
pRank:=a11yProfileRanking[p]
226
+
oRank:=a11yProfileRanking[other]
227
+
returnoRank-pRank
228
+
}
229
+
230
+
typeA11yProfileList []A11yProfile
231
+
232
+
func (lA11yProfileList) Sort() {
233
+
iflen(l) <=1 {
234
+
return
235
+
}
236
+
slices.SortFunc(l, func(a, bA11yProfile) int {
237
+
returna.Compare(b)
238
+
})
239
+
}
240
+
182
241
// A11yCertification represents a certification for an accessible publication.
183
242
typeA11yCertificationstruct {
184
243
CertifiedBystring`json:"certifiedBy,omitempty"`// Identifies a party responsible for the testing and certification of the accessibility of a Publication.
0 commit comments