Skip to content

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

Open
ashsearle wants to merge 1 commit intomattn:masterfrom
ashsearle:fix/anchorize-title
Open

Use first <title> in document when anchorizing URLs#504
ashsearle wants to merge 1 commit intomattn:masterfrom
ashsearle:fix/anchorize-title

Conversation

@ashsearle
Copy link
Copy Markdown

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