- Require Dart
3.2
.
- 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.dart
and others). - Adopted the
package:dart_flutter_team_lints
linting rules. - Fixed an issue with
querySelector
where it would fail in some cases with descendant or sibling combinators (#157). - Add an API example in
example/
.
- Move
htmlSerializeEscape
to 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: false
tostrict-casts: true
.
- Migrate to null safety.
- Drop
lastPhase
,beforeRcDataPhase
, andcontainer
fields fromHtmlParser
class. 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.dart
library.
- 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
processStartTag
andprocessEndTag
methods.
- 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.indexOf
andFilteredElementList.lastIndexOf
to include type annotations.
- Update signature for implementations of
Iterable.singleWhere
to include optional argument.
- Changed the implementation of
Set
andList
classes 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
csslib
versions0.13.x
.
- Exclude
.packages
file from the published package.
- Added
Element.endSourceSpan
, containing the span of a closing tag.
- Support
csslib
version0.12.0
.
- package has been renamed to
html
- switch from
source_maps
'Span
class tosource_span
'sSourceSpan
class.
- 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.