pub fn parse_head(markup: &str) -> Vec<HeadTag>Expand description
Head markup — a page’s rendered Head:, or the head of the shell it is served in — as its
elements, in order. What a browser’s parse keeps of it: element names and attribute names fold
to lower case, the first of two same-named attributes wins, character references decode (never
inside <style>/<script>), text between elements is formatting and is dropped, and an
<html …> is a statement about the document element, never an element of the head.