- Require Dart
3.6 - Added new
textContentmethod toNodeclass that returns the text content of the node.
- Performance improvements.
- No longer generate any error spans if generateSpans is false.
- Fixed a TypeError in nth-child with non numeric value (e.g.
nth-child(even))
- Support "ambiguous ampersand" in attribute values.
- Require Dart
3.2. - Move to
dart-lang/toolsmonorepo.
- Widen the dependency on
package:csslib. - Require Dart
2.19.
- Added package topics to the pubspec file.
- Add additional types at the API boundary (in
lib/parser.dartand others). - Adopted the
package:dart_flutter_team_lintslinting rules. - Fixed an issue with
querySelectorwhere it would fail in some cases with descendant or sibling combinators (#157). - Add an API example in
example/.
- Move
htmlSerializeEscapeto its own library,package:html/html_escape.dart, which is exported frompackage:html/dom_parsing.dart. - Use more non-growable lists, and type annotations on List literals.
- Switch analysis option
implicit-casts: falsetostrict-casts: true.
- Migrate to null safety.
- Drop
lastPhase,beforeRcDataPhase, andcontainerfields fromHtmlParserclass. These fields never had a value other thannull.
- Fix a bug parsing bad HTML where a 'button' end tag needs to close other elements.
- Fix spans generated for HTML with higher-plane unicode characters (eg. emojis).
- Support
package:css>=0.13.2 <0.17.0.
- Support
package:css>=0.13.2 <0.16.0.
BREAKING CHANGES
- Drop support for encodings other than UTF-8 and ASCII.
- Removed
parser_console.dartlibrary.
- Fixes to readme and pubspec.
- Require Dart 2.0 stable.
-
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
processStartTagandprocessEndTagmethods.
- Set max SDK version to
<3.0.0, and adjust other dependencies.
- Updated SDK version to 2.0.0-dev.17.0
- Update the signatures of
FilteredElementList.indexOfandFilteredElementList.lastIndexOfto include type annotations.
- Update signature for implementations of
Iterable.singleWhereto include optional argument.
- Changed the implementation of
SetandListclasses to use base classes fromdart:collection.
- Support the latest release of
pkg/csslib.
- Update Set.difference to take a Set.
- BREAKING Fix all strong mode errors and warnings. This involved adding more precise types on some public APIs, which is why it may break users.
- Support
csslibversions0.13.x.
- Exclude
.packagesfile from the published package.
- Added
Element.endSourceSpan, containing the span of a closing tag.
- Support
csslibversion0.12.0.
- package has been renamed to
html
- switch from
source_maps'Spanclass tosource_span'sSourceSpanclass.
- expand the version constraint for csslib.
- use a more recent source_maps version.
- fix how document fragments are added in NodeList.add/addAll/insertAll.
- add Node.text, Node.append, Document.documentElement
- add Text.data, deprecate Node.value and Text.value.
- deprecate Node.$dom_nodeType
- added querySelector/querySelectorAll, deprecated query/queryAll. This matches the current APIs in dart:html.