-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.xhtml
30 lines (26 loc) · 975 Bytes
/
example.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Example file</title>
<link href="fr.xhtml" hreflang="fr " />
<script type="application/javascript" src="dist/lang-checker.js"></script>
</head>
<body xml:lang="fr">
<p id="no-match" xml:lang="es" lang="en">Test <a href="#" hreflang="de">with a link</a></p>
<p id="match" xml:lang="ca" lang="ca">Test</p>
<p id="ascii-match" xml:lang="it" lang="IT">Test</p>
<p id="xml-only" xml:lang="es">Test</p>
<p id="space" xml:lang="it ">Test</p>
<p id="no-bcp-1" xml:lang="fr-x">Test</p>
<p id="no-bcp-2" xml:lang="ca-US1">Test</p>
<p id="no-bcp-3" xml:lang="i-yolo">Test</p>
<script type="application/javascript">
langChecker.handleXMLLang();
langChecker.checkMainLang();
langChecker.checkHrefLangs();
langChecker.checkOtherLangs(document.body, true);
langChecker.visualAid();
</script>
</body>
</html>