Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justinfagnani/html5lib
html5lib in pure dart
https://github.com/justinfagnani/html5lib
Last synced: about 1 month ago
JSON representation
html5lib in pure dart
- Host: GitHub
- URL: https://github.com/justinfagnani/html5lib
- Owner: justinfagnani
- License: other
- Created: 2012-08-18T03:05:54.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-08-17T19:59:10.000Z (over 12 years ago)
- Last Synced: 2024-10-17T16:54:22.742Z (3 months ago)
- Language: Dart
- Size: 159 KB
- Stars: 2
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
html5lib in Pure Dart
=====================This is a pure [Dart][dart] [html5 parser][html5lib]. It's a port of
[html5lib](http://code.google.com/p/html5lib/) from Python. Since it's 100%
Dart you can use it safely from a script or server side app.Eventually the parse tree API will be compatible with [dart:html][d_html], so
the same code will work on the client or the server.This library is not finished. These files from the [html5lib directory][files]
still need to be ported:* `html5parser.py`
* `ihatexml.py`
* `sanitizer.py`
* `filters/*`
* `serializer/*`
* `treebuilders/*`
* `treewalkers/*`
* most of `tests`Running Tests
-------------Dependencies are installed using the [Pub Package Manager][pub].
pub install
# Run command line tests
#export DART_SDK=path/to/dart/sdk
tests/run.sh[dart]: http://www.dartlang.org/
[html5lib]: http://dev.w3.org/html5/spec/parsing.html
[d_html]: http://api.dartlang.org/docs/continuous/dart_html.html
[files]: http://html5lib.googlecode.com/hg/python/html5lib/
[pub]: http://www.dartlang.org/docs/pub-package-manager/