mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.41k stars 410 forks source link

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

Open ashsearle opened 3 years ago

ashsearle commented 3 years ago

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/