Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use first <title> in document when anchorizing URLs #504

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashsearle
Copy link

Fix an issue where anchorizeURL used the last <title> found in a document, instead of the first:

<html>
<head>
<title>THE TITLE WE WANT</title>
</head>
<body>
  <svg>
    <title>An irrelevant accessibility title</title>
    ...
  </svg>
</body>
</html>

Example URL (at time of writing): https://blog.getbootstrap.com/2020/06/16/bootstrap-5-alpha/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant