Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge package:html #695

Merged
merged 234 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
f0096cb
move html5lib code into dart svn repo
Aug 14, 2013
cf0eba1
html5lib -- workaround dart2js checked issues
Aug 14, 2013
72c0bd6
Remove use of dart:json from third_party.
floitschG Aug 28, 2013
6a20b1f
Remove dart:utf in third_party.
floitschG Aug 28, 2013
d1c7b67
Fix missing quote.
floitschG Aug 28, 2013
2f4e900
remove use of deprecatedFutureValue from html5lib
floitschG Sep 4, 2013
2c5c298
Add List.shuffle().
lrhn Oct 3, 2013
b297907
Make List.shuffle take an optional Random object to use.
lrhn Oct 7, 2013
5626969
Remove uses of Options from pkg, samples, tests, and third_party dire…
whesse Oct 30, 2013
d4437a9
change homepage for html5lib
sethladd Oct 30, 2013
3a00df8
Change dart:io Platform.script to return a URI. Change all uses of P…
whesse Oct 31, 2013
e838f04
Revert "Change dart:io Platform.script to return a Uri."
whesse Oct 31, 2013
3cb0a0e
Change dart:io Platform.script to return a Uri.
sgjesse Oct 31, 2013
33f4422
add versions and constraints for packages and samples
Nov 6, 2013
655df96
Revert "add versions and constraints for packages and samples"
Nov 6, 2013
1e1f98e
Re-land r29957 (add versions and constraints for packages and samples…
dgrove Nov 6, 2013
4bdd386
fix script tags -- remove special case handling for polymer-element
Nov 20, 2013
e8e4c3a
bump pubspecs for package release
Nov 22, 2013
871c4aa
pkg/third_party/html5lib: lots of cleanup
kevmoo Feb 10, 2014
a1f8e6b
introduce web_components pkg to replace shadow_dom, html_import, cust…
Feb 11, 2014
ee270df
fix imports link rel=stylesheet
Feb 13, 2014
3a508c4
fix accidental breaking changes in html5lib, deprecate instead
Feb 13, 2014
55a22fe
small fix in html5lib warning message
sigmundch Feb 21, 2014
4d19bb3
[html5lib] triple slash comment style
Feb 25, 2014
8815c84
[html5lib] api updates: localName
Feb 25, 2014
5ba8488
[polymer] update pubspecs to prepare for -pre.0 release
Feb 28, 2014
c5a8773
Fix how document fragments are added on NodeList operations. The Docu…
sigmundch Apr 4, 2014
07f658b
add CHANGELOG entry in html5lib before releasing.
sigmundch Apr 4, 2014
947cc5a
[html5lib] implement querySelector/querySelectorAll
May 8, 2014
d8c9e44
[html5lib] fix type annotation and pkg.status for angular_tests
May 8, 2014
2dd62e6
[html5lib] fix another type annotation
May 8, 2014
59b22cc
Fix status in bots.
sigmundch May 12, 2014
e5e90f8
The toSet operation returns a new Set with the same equality and iter…
lrhn May 22, 2014
0930068
Update versions before releasing.
sigmundch May 23, 2014
21b1731
Fix a couple more tests that were relying on sourcemap message format.
nex3 May 28, 2014
1a4f863
Add "last" setter to List.
lrhn Jun 12, 2014
ab3235c
Revert "Add "last" setter to List."
lrhn Jun 13, 2014
bdf7b6c
Use source_span rather than source_maps in csslib.
nex3 Jul 30, 2014
e1714e6
Switch various transformers and libraries they use over to source_span.
nex3 Jul 30, 2014
0c08ec7
Add status file for html5lib
sigmundch Oct 9, 2014
737d726
updated homepage
kevmoo Jan 28, 2015
d4aa896
removed unused members
kevmoo Jan 28, 2015
6c5844d
upgrade unittest dependency
kevmoo Jan 28, 2015
9ac68b3
fixed test script
kevmoo Jan 28, 2015
10de01a
formatted source code
kevmoo Jan 28, 2015
62bef7f
Merge pull request dart-lang/html#3 from dart-lang/tweaks
Mar 4, 2015
c6b3680
Update README.md
Mar 5, 2015
7d8b8b4
rename package to `html`
Mar 5, 2015
10b6e8f
Merge pull request dart-lang/html#6 from dart-lang/html
Mar 5, 2015
d06f76a
Update pubspec.yaml
Mar 5, 2015
c199b1f
Merge pull request dart-lang/html#4 from dart-lang/test-readme
sigmundch Mar 5, 2015
70a1d3c
Fixes encoding parser to handle whitespace correctly.
Mar 5, 2015
598f108
Merge pull request dart-lang/html#5 from dart-lang/encoding_bug
Mar 5, 2015
dc10660
remove most string concat, fixes dart-lang/html#7
Mar 5, 2015
a0f3408
Update homepage and description
sethladd Mar 9, 2015
c3ab611
Merge pull request dart-lang/html#10 from dart-lang/sethladd-patch-1
Mar 9, 2015
ae17b03
Just making things extra clear :)
sethladd Mar 9, 2015
b9bb37f
Merge pull request dart-lang/html#11 from dart-lang/sethladd-patch-2
Mar 9, 2015
227261c
support latest csslib
kevmoo Apr 3, 2015
61e396d
fix code review settings
kevmoo Apr 3, 2015
706fd66
Fix typo
sethladd May 17, 2015
9854437
fixes dart-lang/html#16, point at github link for html5lib
Jul 6, 2015
bc70cee
fix parse error with foreignObject end tag
Jul 6, 2015
70750b6
Update pubspec.yaml
Jul 6, 2015
a43a726
Add Element.endSourceSpan
scheglov Aug 26, 2015
d7e4506
Prepare version for release
sigmundch Aug 28, 2015
fe43630
re-publish package:html, but without the .packages file.
sigmundch Dec 17, 2015
8269025
Expand the version constraint to allow using csslib 0.13.x.
munificent Apr 21, 2016
1b44f03
Make package:html strong clean
sigmundch May 11, 2016
56c2644
Update failing test and status file
whesse Aug 18, 2016
b93c291
Fix strong mode error 'Could not infer type parameter'
keertip Oct 3, 2016
b08974f
Update Set.difference signature for 1.21.0-dev.2.0 (dart-lang/html#43)
keertip Oct 24, 2016
bdd32d1
Strong mode fixes for package
keertip Dec 8, 2016
6da2086
support latest csslib
kevmoo May 31, 2017
7515cad
Update generic comment syntax
keertip Aug 7, 2017
41de561
rename analysis_options
kevmoo Aug 2, 2017
03fb0a7
dartfmt
kevmoo Aug 2, 2017
aec4205
start migration to pkg/test
kevmoo Aug 2, 2017
8349fba
sort directives and other lints
kevmoo Oct 12, 2017
bc291f6
finish test cleanup
kevmoo Oct 12, 2017
f13da58
Use SetBase for CssClassSet
kevmoo Dec 20, 2017
54b4201
List proxy
kevmoo Dec 20, 2017
734c4d2
Remove old CI files
kevmoo Dec 20, 2017
9131cd2
Add Travis-CI support
kevmoo Dec 20, 2017
fd343f2
enable many lints
kevmoo Dec 20, 2017
8328873
Test on browsers - and exclude tests that require the vm
kevmoo Dec 20, 2017
7f904d5
Implement RemoveAt and RemoveRange on ListProxy
kevmoo Dec 20, 2017
b97c3c5
Fix and enable level1_baseline_test - with some skips
kevmoo Dec 20, 2017
6c4918e
prepare for release (dart-lang/html#61)
kevmoo Dec 22, 2017
d07a21f
fixed slice to use end index rather than length (dart-lang/html#62)
patefacio Jan 6, 2018
16a7c51
Update signatures for implementation of Iterable.singleWhere (dart-la…
keertip Jan 9, 2018
29c8475
Remove tests expecting >64-bit ints (dart-lang/html#65)
kevmoo Jan 20, 2018
5dd246e
fix an issue when run with --preview-dart-2
devoncarew Mar 9, 2018
f9b9cae
dartfmt
devoncarew Mar 9, 2018
bc6deef
update the changelog
devoncarew Mar 10, 2018
0490f4b
Merge pull request dart-lang/html#68 from dart-lang/preview_dart_2_fix
devoncarew Mar 10, 2018
88e6965
bump the version for publish
kevmoo Mar 10, 2018
38a1036
Remove upper case constants (dart-lang/html#72)
lrhn May 30, 2018
97ff407
chore: set max SDK version to <3.0.0 (dart-lang/html#76)
chalin Jul 19, 2018
c1f8846
Fix missing_return in two spots
srawlins Aug 10, 2018
2b41d6d
Bump
srawlins Aug 10, 2018
1516eb7
Merge pull request dart-lang/html#77 from srawlins/fix-missing-return
srawlins Aug 11, 2018
a0f0e97
Enable and fix a number of lints (dart-lang/html#82)
kevmoo Oct 30, 2018
93b5360
Update test expectations for source_span output (dart-lang/html#87)
natebosch Jan 17, 2019
036bb6e
Add warning to changelog about tag 0.13.3+3
whesse Mar 4, 2019
f9df5e5
fix tiny lint issues
kevmoo Mar 1, 2019
d235d54
Fixes to readme and pubspec, prepare for 0.13.4+1
kevmoo Mar 4, 2019
3ec1d9c
Remove broken link from readme
kevmoo Apr 5, 2019
e5cd13d
Remove support for deprecated encodings and parser_console.dart libra…
kevmoo Apr 8, 2019
5f59a77
Prepare to release 0.14.0 (dart-lang/html#94)
kevmoo Apr 9, 2019
2470cd8
Don't depend on `pacakge:utf` (dart-lang/html#95)
lrhn Apr 9, 2019
9329a1a
Code cleanup (dart-lang/html#96)
kevmoo Apr 11, 2019
dcf628d
Support the latest pkg:csslib on the 0.13 version path (dart-lang/htm…
kevmoo Apr 11, 2019
d999ed7
Support the latest pkg:csslib, prepare to release 0.14.0+1
kevmoo Apr 11, 2019
6d86867
Support the latest pkg:css, prepare to release 0.14.0+2 (dart-lang/ht…
kevmoo Apr 24, 2019
2f306e4
fix latest pedantic lints (dart-lang/html#106)
kevmoo May 9, 2019
f446b88
fix latest pedantic lints (dart-lang/html#107)
kevmoo Jul 6, 2019
e5d5b1d
fix lint (dart-lang/html#108)
kevmoo Jul 10, 2019
df1f11b
Fix spans generated for HTML with higher-plane unicode characters (da…
cvolzke4 Sep 19, 2019
b66bc50
Bump version in pubspec in preparation to publish (dart-lang/html#110)
nshahan Sep 30, 2019
bb459ab
Fix newly enforced package:pedantic lints (dart-lang/html#111)
natebosch Dec 11, 2019
e10757e
Refactor some utilities (dart-lang/html#115)
natebosch Jun 11, 2020
b9f59b3
Fix infinite loop with bad button close tag (dart-lang/html#128)
natebosch Sep 25, 2020
3d4d88c
Disable implicit casts (dart-lang/html#130)
natebosch Oct 5, 2020
b3808cf
Enable and fix lint prefer_final_locals (dart-lang/html#131)
natebosch Oct 6, 2020
69f402c
Rewrite asciiUpper2Lower as an extension (dart-lang/html#132)
natebosch Oct 7, 2020
e03bc6b
Remove unused field _lineStarts (dart-lang/html#133)
natebosch Oct 7, 2020
ee9b3e0
Use Object in place of dynamic (dart-lang/html#134)
natebosch Oct 7, 2020
72bf9fd
Remove Marker as a name for null (dart-lang/html#136)
natebosch Oct 12, 2020
79e6e86
Drop unused lastPhase and beforeRcDataPhase fields (dart-lang/html#137)
natebosch Oct 14, 2020
14949e4
Remove a fixed size list creation (dart-lang/html#138)
natebosch Oct 14, 2020
a7c1435
Migrate to null safety
natebosch Oct 7, 2020
a83fd60
fixes
kevmoo Oct 15, 2020
04123ec
enable test
kevmoo Oct 15, 2020
ecb4ce1
oops2
kevmoo Oct 15, 2020
8ebbb61
Review comments
natebosch Oct 20, 2020
ec95a23
Make current*Token getters non-nullable
natebosch Oct 21, 2020
f978c19
Make more arguments non-nullable
natebosch Oct 21, 2020
eb5353b
Remove a comparison against eof to get flow analysis
natebosch Oct 21, 2020
42d0986
Initialize to avoid nullable local
natebosch Oct 21, 2020
a3ed63e
Avoid extra list for single character strings (dart-lang/html#141)
natebosch Oct 26, 2020
bf9ea33
Merge branch 'master' into null_safety-migration
natebosch Oct 27, 2020
1254bbe
cleanup and fix lints (dart-lang/html#143)
kevmoo Oct 31, 2020
47599c5
Remove unused link in readme (dart-lang/html#142)
kevmoo Oct 31, 2020
196ed7f
Merge branch 'null_safety' into null_safety-migration
natebosch Nov 6, 2020
26cf956
Update SDK constraint for 2.12
natebosch Nov 6, 2020
72fcdc0
Remove references to experiment
natebosch Nov 6, 2020
0c3cc1f
Fix a missed static error
natebosch Nov 6, 2020
19d0738
Non-null map keys
natebosch Nov 6, 2020
0242a47
Late final for relationshipt between Node and NodeList
natebosch Nov 6, 2020
59f4686
Enable and fix lint comment_references (dart-lang/html#144)
natebosch Nov 6, 2020
2b08713
Find test data files from package: URI (dart-lang/html#149)
natebosch Jan 14, 2021
f305412
Use covariant for non-nullable override of nullable setter
natebosch Jan 20, 2021
e44e542
Merge branch 'master' into null_safety-migration
natebosch Jan 20, 2021
6e014f9
Comment about publish requirements
natebosch Jan 25, 2021
3f9b47d
Remove local cast alias
natebosch Jan 25, 2021
821c66b
Nullable document/head/body
natebosch Jan 25, 2021
27531da
Some comments around scary patterns
natebosch Jan 25, 2021
9696ffc
Avoid unused instantiation
natebosch Jan 25, 2021
831da5b
Migrate to github actions (dart-lang/html#151)
natebosch Jan 25, 2021
48877de
Remove unused container field from HtmlParser (dart-lang/html#150)
natebosch Jan 25, 2021
6462319
Merge branch 'master' into null_safety-migration
natebosch Jan 25, 2021
88d22ae
Dont' bothery with null_safety branch
natebosch Jan 25, 2021
9d2103c
Use .0 version. Mention migration in changelog
natebosch Jan 25, 2021
fe45351
Migrate to null safety (dart-lang/html#139)
natebosch Jan 25, 2021
93198a0
Prepare to publish (dart-lang/html#152)
natebosch Feb 1, 2021
f410ff6
Stable null safe v0.15.0 (dart-lang/html#154)
kevmoo Feb 11, 2021
7f7be02
Update LICENSE
franklinyow Mar 30, 2021
770d562
Merge pull request dart-lang/html#160 from dart-lang/franklinyow-patch-1
franklinyow Mar 30, 2021
c7449e7
Fix newly enforced lint (dart-lang/html#161)
kevmoo Apr 26, 2021
61c4df6
add dependabot
kevmoo Jun 5, 2021
7b20b62
Bump dart-lang/setup-dart from 0.3 to 1 (dart-lang/html#164)
dependabot[bot] Jun 5, 2021
bb4b6d0
Update CI (dart-lang/html#166)
kevmoo Jul 16, 2021
c4ac5c3
Move to pkg:lints (dart-lang/html#169)
kevmoo Oct 14, 2021
a39ec63
Use a late final field over a getter with ??= (dart-lang/html#170)
natebosch Dec 15, 2021
d77b8ac
Update README.md (dart-lang/html#172)
kabagouda Jan 9, 2022
1b36140
Remove dynamic calls
srawlins Feb 9, 2022
8c59370
Merge pull request dart-lang/html#174 from dart-lang/dynamic-calls
srawlins Feb 9, 2022
a60475f
Move htmlSerializeEscape into its own library
srawlins Feb 9, 2022
04a2e89
changelog
srawlins Feb 9, 2022
191a658
Merge pull request dart-lang/html#175 from dart-lang/move-escape
srawlins Feb 9, 2022
d8189b8
Bump actions/checkout from 2 to 3 (dart-lang/html#176)
dependabot[bot] Mar 2, 2022
2401dce
Drop unnecessary severity upgrades (dart-lang/html#181)
natebosch May 5, 2022
40419e8
Use growable lists and avoid dynamic
srawlins Sep 29, 2022
4c4bf4a
add markdown badges to the readme
devoncarew Sep 29, 2022
24b88a5
update to our current CI best practices
devoncarew Sep 29, 2022
b8887b0
Merge pull request dart-lang/html#189 from dart-lang/update_ci
devoncarew Sep 29, 2022
5eba1e2
Merge pull request dart-lang/html#188 from dart-lang/update_readme
devoncarew Sep 29, 2022
d9a59be
changelog
srawlins Sep 29, 2022
8664927
Merge pull request dart-lang/html#187 from dart-lang/growable
srawlins Sep 29, 2022
df886be
rev the package version in preparation for publishing (dart-lang/html…
devoncarew Oct 19, 2022
d0e99d2
blast_repo fixes (dart-lang/html#191)
kevmoo Nov 9, 2022
071a18f
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/html#193)
dependabot[bot] Jan 3, 2023
6fbe3e2
finish work for avoid_dynamic_calls (dart-lang/html#196)
devoncarew Jan 27, 2023
da9a4a5
Update test-package.yml (dart-lang/html#198)
devoncarew Jan 30, 2023
5e83746
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/html#199)
dependabot[bot] Jan 30, 2023
dfe81f1
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/html#200)
dependabot[bot] Jan 30, 2023
26707fa
fixed issue dart-lang/html#157 (querySelector fails), and added test …
ronjb Jan 30, 2023
9411b01
updates from dart-lang/html#158 (dart-lang/html#202)
devoncarew Jan 30, 2023
946c7e9
lint with dart_flutter_team_lints (dart-lang/html#201)
devoncarew Jan 30, 2023
02f79fa
add an api example (dart-lang/html#204)
devoncarew Feb 5, 2023
f7a00b2
prep for publishing 0.15.2 (dart-lang/html#205)
devoncarew Mar 2, 2023
51cb6d1
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/html#210)
dependabot[bot] Apr 3, 2023
20771ff
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/html#209)
dependabot[bot] Apr 3, 2023
8479abd
Dart 3 compatibility: turn classes into mixins (dart-lang/html#208)
oprypin Apr 5, 2023
63e613f
added package topics to the pubspec file (dart-lang/html#215)
devoncarew May 3, 2023
249811f
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/html#214)
dependabot[bot] May 8, 2023
16e0d04
blast_repo fixes (dart-lang/html#216)
devoncarew May 17, 2023
ffeaa23
widen the dependency on 'package:csslib' (dart-lang/html#217)
devoncarew Jun 7, 2023
98f016a
address new analysis issues (dart-lang/html#219)
devoncarew Jul 1, 2023
0d16414
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/html#218)
dependabot[bot] Jul 1, 2023
335cec3
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/html#225)
dependabot[bot] Sep 1, 2023
f8be255
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/html#227)
dependabot[bot] Oct 1, 2023
91034b0
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/html#228)
dependabot[bot] Oct 2, 2023
2f601aa
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/html#233)
dependabot[bot] Nov 1, 2023
86af1fd
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/html#232)
dependabot[bot] Nov 1, 2023
8985ef5
blast_repo fixes (dart-lang/html#235)
kevmoo Jan 25, 2024
5a09977
Update lints, require Dart 3.2 (dart-lang/html#236)
kevmoo Jan 26, 2024
6c321c7
Bump dart-lang/setup-dart from 1.6.1 to 1.6.2 (dart-lang/html#237)
dependabot[bot] Feb 1, 2024
15f4177
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/html#239)
dependabot[bot] Apr 1, 2024
8303002
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/html#242)
dependabot[bot] May 1, 2024
4a63f33
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/html#241)
dependabot[bot] May 1, 2024
8091fdf
blast_repo fixes (dart-lang/html#244)
devoncarew May 6, 2024
60f83a2
Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group…
dependabot[bot] May 6, 2024
a24637a
Bump actions/checkout from 4.1.5 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
37ebcdc
update lints (dart-lang/html#249)
kevmoo Jun 25, 2024
1264793
Bump the github-actions group with 2 updates (dart-lang/html#250)
dependabot[bot] Jul 1, 2024
d226b1a
Fix doc comments (dart-lang/html#256)
natebosch Aug 29, 2024
cb0c12f
Drop Pair util class (dart-lang/html#255)
kevmoo Aug 29, 2024
1f9e1d2
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 1, 2024
847d36f
Merge package:html into the tools monorepo
mosuem Oct 25, 2024
b609e87
Add issue template and other fixes
mosuem Oct 25, 2024
e12f92e
Moving fixes
mosuem Oct 25, 2024
0e9dfda
Merge branch 'main' into merge-html-package
mosuem Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:html"
about: "Create a bug or file a feature request against package:html."
labels: "package:html"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/graphs/**'

'package:html':
- changed-files:
- any-glob-to-any-file: 'pkgs/html/**'

'package:json_rpc_2':
- changed-files:
- any-glob-to-any-file: 'pkgs/json_rpc_2/**'
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/html.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: package:html

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/html.yml'
- 'pkgs/html/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/html.yml'
- 'pkgs/html/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/html/

jobs:
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: dev
- id: install
run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
if: steps.install.outcome == 'success'
- run: dart analyze --fatal-infos
if: steps.install.outcome == 'success'

test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [3.2, stable, dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
run: dart pub get
- run: dart test --platform vm
if: steps.install.outcome == 'success'
- run: dart test --platform chrome
if: steps.install.outcome == 'success'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ don't naturally belong to other topic monorepos (like
| [file](pkgs/file/) | A pluggable, mockable file system abstraction for Dart. | [![pub package](https://img.shields.io/pub/v/file.svg)](https://pub.dev/packages/file) |
| [file_testing](pkgs/file_testing/) | Testing utilities for package:file (published but unlisted). | [![pub package](https://img.shields.io/pub/v/file_testing.svg)](https://pub.dev/packages/file_testing) |
| [graphs](pkgs/graphs/) | Graph algorithms that operate on graphs in any representation | [![pub package](https://img.shields.io/pub/v/graphs.svg)](https://pub.dev/packages/graphs) |
| [html](pkgs/html/) | APIs for parsing and manipulating HTML content outside the browser. | [![pub package](https://img.shields.io/pub/v/html.svg)](https://pub.dev/packages/html) |
| [json_rpc_2](pkgs/json_rpc_2/) | Utilities to write a client or server using the JSON-RPC 2.0 spec. | [![pub package](https://img.shields.io/pub/v/json_rpc_2.svg)](https://pub.dev/packages/json_rpc_2) |
| [mime](pkgs/mime/) | Utilities for handling media (MIME) types. | [![pub package](https://img.shields.io/pub/v/mime.svg)](https://pub.dev/packages/mime) |
| [oauth2](pkgs/oauth2/) | A client library for authenticatingand making requests via OAuth2. | [![pub package](https://img.shields.io/pub/v/oauth2.svg)](https://pub.dev/packages/oauth2) |
Expand Down
19 changes: 19 additions & 0 deletions pkgs/html/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Don’t commit the following directories created by pub.
.pub
.dart_tool/
build/
packages
.packages

# Or the files created by dart2js.
*.dart.js
*.dart.precompiled.js
*.js_
*.js.deps
*.js.map
*.sw?
.idea/
.pub/

# Include when developing application packages.
pubspec.lock
149 changes: 149 additions & 0 deletions pkgs/html/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
## 0.15.5

- Require Dart `3.2`.
- Move to `dart-lang/tools` monorepo.

## 0.15.4

- Widen the dependency on `package:csslib`.
- Require Dart `2.19`.

## 0.15.3

- Added package topics to the pubspec file.

## 0.15.2

- 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/`.

## 0.15.1

- Move `htmlSerializeEscape` to its own library,
`package:html/html_escape.dart`, which is exported from
`package:html/dom_parsing.dart`.
- Use more non-growable lists, and type annotations on List literals.
- Switch analysis option `implicit-casts: false` to `strict-casts: true`.

## 0.15.0

- Migrate to null safety.
- Drop `lastPhase`, `beforeRcDataPhase`, and `container` fields from
`HtmlParser` class. These fields never had a value other than `null`.

## 0.14.0+4

- Fix a bug parsing bad HTML where a 'button' end tag needs to close other
elements.

## 0.14.0+3

- Fix spans generated for HTML with higher-plane unicode characters
(eg. emojis).

## 0.14.0+2

- Support `package:css` `>=0.13.2 <0.17.0`.

## 0.14.0+1

- Support `package:css` `>=0.13.2 <0.16.0`.

## 0.14.0

*BREAKING CHANGES*

- Drop support for encodings other than UTF-8 and ASCII.
- Removed `parser_console.dart` library.

## 0.13.4+1

* Fixes to readme and pubspec.

## 0.13.4

* Require Dart 2.0 stable.

## 0.13.3+3

* 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.

## 0.13.3+2

* Set max SDK version to `<3.0.0`, and adjust other dependencies.

## 0.13.3+1

* Updated SDK version to 2.0.0-dev.17.0

## 0.13.3

* Update the signatures of `FilteredElementList.indexOf` and
`FilteredElementList.lastIndexOf` to include type annotations.

## 0.13.2+2

* Update signature for implementations of `Iterable.singleWhere` to include
optional argument.

## 0.13.2+1

* Changed the implementation of `Set` and `List` classes to use base classes
from `dart:collection`.

## 0.13.2

* Support the latest release of `pkg/csslib`.

## 0.13.1
* Update Set.difference to take a Set<Object>.

## 0.13.0

* **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.

[strong mode]: https://github.com/dart-lang/dev_compiler/blob/master/STRONG_MODE.md

#### Pub version 0.12.2+2
* Support `csslib` versions `0.13.x`.

#### Pub version 0.12.2+1
* Exclude `.packages` file from the published package.

#### Pub version 0.12.2
* Added `Element.endSourceSpan`, containing the span of a closing tag.

#### Pub version 0.12.0+1
* Support `csslib` version `0.12.0`.

#### Rename to package:html 0.12.0
* package has been renamed to `html`

#### Pub version 0.12.0
* switch from `source_maps`' `Span` class to `source_span`'s
`SourceSpan` class.

#### Pub version 0.11.0+2
* expand the version constraint for csslib.

#### Pub version 0.10.0+1
* use a more recent source_maps version.

#### Pub version 0.10.0
* fix how document fragments are added in NodeList.add/addAll/insertAll.

#### Pub version 0.9.2-dev
* 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.
23 changes: 23 additions & 0 deletions pkgs/html/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright (c) 2006-2012 The Authors

Contributors:
James Graham - [email protected]
Anne van Kesteren - [email protected]
Lachlan Hunt - [email protected]
Matt McDonald - [email protected]
Sam Ruby - [email protected]
Ian Hickson (Google) - [email protected]
Thomas Broyer - [email protected]
Jacques Distler - [email protected]
Henri Sivonen - [email protected]
Adam Barth - [email protected]
Eric Seidel - [email protected]
The Mozilla Foundation (contributions from Henri Sivonen since 2008)
David Flanagan (Mozilla) - [email protected]
Google LLC (contributed the Dart port) - [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 changes: 28 additions & 0 deletions pkgs/html/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[![Build Status](https://github.com/dart-lang/tools/actions/workflows/html.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/html.yaml)
[![pub package](https://img.shields.io/pub/v/html.svg)](https://pub.dev/packages/html)
[![package publisher](https://img.shields.io/pub/publisher/html.svg)](https://pub.dev/packages/html/publisher)

A Dart implementation of an HTML5 parser.

## Usage

Parsing HTML is easy!

```dart
import 'package:html/parser.dart';

void main() {
var document = parse(
'<body>Hello world! <a href="www.html5rocks.com">HTML5 rocks!');
print(document.outerHtml);
}
```

You can pass a String or list of bytes to `parse`. There's also `parseFragment`
for parsing a document fragment, and `HtmlParser` if you want more low level
control.

## Background

This package was a port of the Python
[html5lib](https://github.com/html5lib/html5lib-python) library.
10 changes: 10 additions & 0 deletions pkgs/html/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
include: package:dart_flutter_team_lints/analysis_options.yaml

analyzer:
language:
strict-casts: true
strict-raw-types: true
errors:
lines_longer_than_80_chars: ignore
# https://github.com/dart-lang/linter/issues/1649
prefer_collection_literals: ignore
57 changes: 57 additions & 0 deletions pkgs/html/example/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import 'package:html/dom.dart';
import 'package:html/dom_parsing.dart';
import 'package:html/parser.dart';

void main(List<String> args) {
var document = parse('''
<body>
<h2>Header 1</h2>
<p>Text.</p>
<h2>Header 2</h2>
More text.
<br/>
</body>''');

// outerHtml output
print('outer html:');
print(document.outerHtml);

print('');

// visitor output
print('html visitor:');
_Visitor().visit(document);
}

// Note: this example visitor doesn't handle things like printing attributes and
// such.
class _Visitor extends TreeVisitor {
String indent = '';

@override
void visitText(Text node) {
if (node.data.trim().isNotEmpty) {
print('$indent${node.data.trim()}');
}
}

@override
void visitElement(Element node) {
if (isVoidElement(node.localName)) {
print('$indent<${node.localName}/>');
} else {
print('$indent<${node.localName}>');
indent += ' ';
visitChildren(node);
indent = indent.substring(0, indent.length - 2);
print('$indent</${node.localName}>');
}
}

@override
void visitChildren(Node node) {
for (var child in node.nodes) {
visit(child);
}
}
}
Loading
Loading