https://github.com/crhntr/dom
This project has document object model (DOM) inspired wrappers around the https://golang.org/x/net/html package.
https://github.com/crhntr/dom
dom go html html5
Last synced: 3 months ago
JSON representation
This project has document object model (DOM) inspired wrappers around the https://golang.org/x/net/html package.
- Host: GitHub
- URL: https://github.com/crhntr/dom
- Owner: crhntr
- License: mit
- Created: 2020-04-29T03:53:03.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T07:18:45.000Z (4 months ago)
- Last Synced: 2025-02-18T08:28:09.157Z (4 months ago)
- Topics: dom, go, html, html5
- Language: Go
- Homepage: https://playground.crhntr.com/?example=dom
- Size: 163 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dom [](https://pkg.go.dev/github.com/crhntr/dom)
This package has pure Go implementation of some Document Object Model functions using [golang.org/x/net/html.Node](https://pkg.go.dev/golang.org/x/net/html).
I often use this for testing HTML coming back from servers. I also am using it in [Muxt](https://github.com/crhntr/muxt). If you like hypertext, definitely go take a look.
It makes use of the awesome package [andybalholm/cascadia](https://github.com/andybalholm/cascadia).
The spec package specifies interfaces; dom has implementations.