Libdom is an implementation of the W3C DOM, written in C. It is currently in development for use with NetSurf and is intended to be suitable for use in other projects too.
You can browse the source code via the online interface.
If you would like to help develop Libdom, please join the NetSurf developer mailing list.