diff options
author | Yifan Hong <elsk@google.com> | 2021-10-15 18:47:35 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2021-10-15 18:47:35 -0700 |
commit | 3b65aae27e728cb48560a6e76b8351c93c10d794 (patch) | |
tree | be4eb5333a9847c77e3d733207e2146f744a8d56 | |
parent | 562e758d12fbaf30cb6b8c66653d2e719ee44b90 (diff) | |
download | bazel_common_rules-3b65aae27e728cb48560a6e76b8351c93c10d794.tar.gz |
docs: TOC shows text not anchor link
For example, if the title has upper case characters,
the anchor is in lower case. Use innerText instead.
Test: see kleaf docs
Change-Id: I0f9cefe4b3aa5627ab422fedf7cd8263277cb1b2
-rw-r--r-- | docs/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/index.html b/docs/index.html index 9c5c171..66cd737 100644 --- a/docs/index.html +++ b/docs/index.html @@ -51,7 +51,7 @@ var clone = sampleTocItem.cloneNode(true) var link = clone.getElementsByTagName("a")[0]; link.href = "#" + h2Elements[i].id - link.innerText = h2Elements[i].id + link.innerText = h2Elements[i].innerText toc.appendChild(clone) } toc.appendChild(document.getElementById("div-sample-toc-break").cloneNode(true)) |