? This is improper tag nesting.`,
- source: 'WCAG 2.1',
- };
- if (hasDiagnosticRelatedInformationCapability) {
- diagnostic.relatedInformation = [
- {
- location: {
- uri: textDocument.uri,
- range: Object.assign({}, diagnostic.range),
- },
- message: 'Swap.
.',
- },
- ];
- }
- diagnostics.push(diagnostic);
- }
-
- // Proper opening/closing tag nesting (button, h1-6, p, b, i, u)
- const pattern10 =
- /