Sha256: 5afe7c7d5fdf722e22bf1be26d7151c5c9e9032f092160fa8cba2985387a04b2
Contents?: true
Size: 384 Bytes
Versions: 236
Compression:
Stored size: 384 Bytes
Contents
const { isXHTML } = axe.utils; const langValue = (node.getAttribute(`lang`) || '').trim(); const xmlLangValue = (node.getAttribute(`xml:lang`) || '').trim(); if (!langValue && xmlLangValue && !isXHTML(document)) { this.data({ messageKey: 'noXHTML' }); return false; } if (!(langValue || xmlLangValue)) { this.data({ messageKey: 'noLang' }); return false; } return true;
Version data entries
236 entries across 236 versions & 1 rubygems