Web.RelMe: Fix having other values in rel attr
One example of this is Github which puts a rel="nofollow me" on the profile link.
This commit is contained in:
parent
682cc94db1
commit
788a354ce0
4 changed files with 29 additions and 1 deletions
14
test/fixtures/rel_me_anchor_nofollow.html
vendored
Normal file
14
test/fixtures/rel_me_anchor_nofollow.html
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Blog</title>
|
||||
</head>
|
||||
<body>
|
||||
<article>
|
||||
<h1>Lorem ipsum</h1>
|
||||
<p>Lorem ipsum dolor sit ameph, …</p>
|
||||
<a rel="me nofollow" href="https://social.example.org/users/lain">lain’s account</a>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
||||
1
test/fixtures/rel_me_null.html
vendored
1
test/fixtures/rel_me_null.html
vendored
|
|
@ -8,6 +8,7 @@
|
|||
<article>
|
||||
<h1>Lorem ipsum</h1>
|
||||
<p>Lorem ipsum dolor sit ameph, …</p>
|
||||
<a rel="nofollow" href="https://social.example.org/users/lain">lain’s account</a>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue