struct

LinkFollowability::Anchor

Inherits Struct < Value < Object

One anchor found in an HTML document.

Constructors

new(href : String, rel : Array(String), index : Int32)
Source

Instance methods

clone
Source
copy_with(href _href = @href, rel _rel = @rel, index _index = @index)
Source
hints

Tokens from NOT_FOLLOWED_TOKENS present on this anchor, in source order.

Source
href
index
rel
rel_followed?

True when no nofollow/ugc/sponsored token is present on the anchor itself.

Source