struct LinkFollowability::Anchor

Overview

One anchor found in an HTML document.

Defined in:

link_followability.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(href : String, rel : Array(String), index : Int32) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(href _href = @href, rel _rel = @rel, index _index = @index) #

[View source]
def hints : Array(String) #

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


[View source]
def href : String #

def index : Int32 #

def rel : Array(String) #

def rel_followed? : Bool #

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


[View source]