HtmlInputStream no longer copies the input when it needs no newline or surrogate normalization, and htmlSerializeEscape copies unescaped runs at once and returns the input unchanged when nothing needs escaping.Element.text, DocumentFragment.text and Node.textContent throwing a StackOverflowError on very deeply nested elements; text is now extracted iteratively.Node.remove and NodeList.remove leaving a stale parentNode, Node.insertBefore, NodeList.insert, insertAll and operator []= using a shifted index when moving an earlier sibling, and reparentChildren emptying a node reparented to itself. Moving all children of another node (append of a DocumentFragment, reparentChildren, innerHtml) now runs in linear time.getElementById, getElementsByTagName and getElementsByClassName no longer parse a CSS selector. IDs and class names that are not valid CSS identifiers (such as a:b, a.b or 1) now match exactly instead of throwing or matching the wrong element, getElementById('') returns null, class names are split on HTML ASCII whitespace, and deeply nested documents no longer overflow the stack. getElementsByTagName now matches a single tag name, as in the DOM spec, so selector lists or combinators such as 'h1, h2' return an empty list, and '' returns an empty list instead of throwing.querySelector and querySelectorAll matching of :root (now the element whose parent is the Document) and numeric :nth-child(n) (now counts element siblings from 1), and traverse descendants iteratively so deeply nested documents no longer overflow the stack.[attr~=value] selectors and Element.classes now split their values on ASCII whitespace (space, tab, LF, FF, CR) as the HTML standard requires.</br> and </p> end tags in foreign content (<svg>, <math>) now exit foreign content before reprocessing in HTML mode, matching the WHATWG HTML standard.< and > are now escaped as < and > when serializing attribute values in htmlSerializeEscape, innerHtml, and outerHtml, matching the WHATWG HTML standard.Node.attributeSpans and Node.attributeValueSpans throwing a TypeError when a start tag emits tokenizer parse errors, and preserve the first occurrence's span on duplicate attributes.HtmlInputStream throwing a FormatException on malformed UTF-8 or invalid ASCII byte sequences, and ignore <meta charset> declarations that resolve to unsupported Dart codecs.HtmlTokenizer.consumeNumberEntity throwing a FormatException when a numeric character reference overflows a 64-bit integer.EncodingParser failing to parse <meta charset> attributes with whitespace before =, unquoted charset values at the end of content attributes, and truncated attributes at EOF.querySelector and querySelectorAll throwing a null-check TypeError instead of FormatException on empty :not() selectors.TreeBuilder not updating Text.sourceSpan when merging consecutive foster-parented text nodes before a <table>.ParseError.message throwing a null-check TypeError on unexpected-EOF-after-attribute-value tokenizer errors, and align tokenizer error codes this-closing-flag-on-end-tag -> self-closing-flag-on-end-tag and expected-end-of-tag-but-got-eof -> expected-end-of-tag-name-but-got-eof with errorMessages.:empty and :blank selectors not matching elements without child nodes, and matching elements that have a child element next to a comment.writeTextNodeAsHtml: Escape text inside <script> and <style>-like tags in foreign namespaces.3.6textContent method to Node class that returns the text content of the node.htmlToCodeMarkup() by escaping DOCTYPE, element, and attribute names.nth-child(even))3.2.dart-lang/tools monorepo.package:csslib.2.19.lib/parser.dart and others).package:dart_flutter_team_lints linting rules.querySelector where it would fail in some cases with descendant or sibling combinators (#157).example/.htmlSerializeEscape to its own library, package:html/html_escape.dart, which is exported from package:html/dom_parsing.dart.implicit-casts: false to strict-casts: true.lastPhase, beforeRcDataPhase, and container fields from HtmlParser class. These fields never had a value other than null.package:css >=0.13.2 <0.17.0.package:css >=0.13.2 <0.16.0.BREAKING CHANGES
parser_console.dart library.Do not use this tag in our systems - there was an earlier version of it pointing to a different commit, that is still in some caches.
Fix missing_return analyzer errors in processStartTag and processEndTag methods.
<3.0.0, and adjust other dependencies.FilteredElementList.indexOf and FilteredElementList.lastIndexOf to include type annotations.Iterable.singleWhere to include optional argument.Set and List classes to use base classes from dart:collection.pkg/csslib.csslib versions 0.13.x..packages file from the published package.Element.endSourceSpan, containing the span of a closing tag.csslib version 0.12.0.htmlsource_maps' Span class to source_span's SourceSpan class.