
HTML::Linear::Element - represent elements to populate HTML::Linear

version 0.018

use HTML::Linear::Element;
use HTML::Linear::Path;
my $el = HTML::Linear::Element->new({
depth => 0,
path => [ HTML::Linear::Path->new({ address => q(...), tag => q(...) }) ],
})

Element attributes.
Element content.
Depth level of an element inside a HTML::TreeBuilder structure.
Index to preserve elements order.
Used for internal collision detection.
Stringified element representation.
Store representations of paths inside HTML::TreeBuilder structure (HTML::Linear::Path).
Lazy Digest::SHA (256-bit) representation.
Strict mode disables grouping by tags/attributes listed in "%HTML::Linear::Path::groupby" in HTML::Linear::Path.
XPath seems to be unique after that level.

Stringified signature of an element.
Build a nice XPath representation of a path inside the HTML::TreeBuilder structure.
Returns string in scalar context or XPath segments in list context.
Linearize element as an associative array (Perl hash).
Return XPath weight.

Stanislaw Pusep <stas@sysd.org>

This software is copyright (c) 2013 by Stanislaw Pusep.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.