Skip to content

Commit 6da2468

Browse files
authored
Fix msdocs links for chm (#1074)
.text property is not available in quirks mode
2 parents f9da07b + 6e8a3b2 commit 6da2468

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

enc/enc_rus/meta/links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function makeLink(a) {
22
if (a.className.indexOf("msdocs") === -1) {
33
return;
44
}
5-
a.href = "https://learn.microsoft.com/search/?terms=" + a.text;
5+
a.href = "https://learn.microsoft.com/search/?terms=" + a.innerText;
66
if (a.className.indexOf("archive") > -1) {
77
a.href = a.href + "&dataSource=previousVersions";
88
}

0 commit comments

Comments
 (0)