+4
-10
README.md
+4
-10
README.md
···
4
4
5
5
**Note: This package is browser-only.** It uses DOM APIs and browser events for initialization and cannot be used in Node.js.
6
6
7
-
This is a fully compliant HTML5 parser implementing the [WHATWG HTML5 specification](https://html.spec.whatwg.org/multipage/parsing.html), passing the html5lib-tests conformance suite.
7
+
This is a fully compliant HTML5 parser implementing the [WHATWG HTML5 specification](https://html.spec.whatwg.org/multipage/parsing.html), passing
8
+
the html5lib-tests conformance suite. It is based on transpiling <https://github.com/validator/validator> into OCaml.
8
9
9
10
## Installation
10
11
···
31
32
</html>
32
33
```
33
34
34
-
### WebAssembly Version (faster, recommended)
35
+
### WebAssembly Version
35
36
36
37
```html
37
38
<!DOCTYPE html>
···
90
91
- DOM manipulation
91
92
- HTML serialization
92
93
93
-
## Browser Compatibility
94
-
95
-
Requires a modern browser with:
96
-
- ES6 support
97
-
- WebAssembly (for WASM version)
98
-
- Web Workers (for worker version)
99
-
100
94
## Source Code
101
95
102
96
The OCaml source code is available on the `main` branch:
103
-
https://github.com/avsm/ocaml-html5rw
97
+
https://tangled.org/anil.recoil.org/ocaml-html5rw
104
98
105
99
## License
106
100