Module: Html2rss::SST::Tags
- Defined in:
- lib/html2rss/sst/tags.rb
Overview
Shared tag-name and href constants for SST nodes.
Constant Summary collapse
- HEADING_NAMES =
Heading element names.
i[h1 h2 h3 h4 h5 h6].to_set.freeze
- BLOCK_NAMES =
Block-level names that contribute structural newlines in text.
i[p div li ul ol h1 h2 h3 h4 h5 h6 tr br].to_set.freeze
- INVISIBLE_NAMES =
Names skipped when collecting visible text.
i[svg script noscript style template].to_set.freeze
- UTILITY_LANDMARK_NAMES =
Landmark names treated as utility chrome.
i[nav aside ].to_set.freeze
- IGNORED_CONTAINER_NAMES =
Container names ignored as article roots.
i[nav header svg script style].to_set.freeze
- CLUSTER_EXCLUDED_NAMES =
Names excluded from class/structure clustering.
i[html body nav header svg script style].to_set.freeze
- SKIP_HREF_PREFIXES =
Href prefixes that never count as content destinations.
['#', 'javascript:', 'mailto:', 'tel:', 'file://', 'sms:', 'data:'].freeze
- LAYOUT_NAMES =
Layout-ish names used when resolving nested wrapper groups.
i[div section article li ul ol].to_set.freeze