# html
This package offers a simple HTML parser, motivated by a desire to query the DOM and
extract information from it.
The current parser is NOT spec compliant, and is not guaranteed to work on _all_ HTML input.
This may change.
## usage
```
package main
import html "../"
import "core:fmt"
main :: proc() {
doc := html.parse("
")
defer html.document_delete(doc)
iter := html.node_iterator_from_document(doc)
for node in html.node_iterator_depth_first(&iter) {
fmt.println(html.node_to_string(node))
}
}
```
All strings on the Node are a slice into the original input string.
The dynamic arrays for the attributes and children can be deleted with [html.document_delete].
## roadmap
- record parse errors
- spec compliance
- respect content model: eg special hadling for `