xmldom
xmldom copied to clipboard
`jindw/xmldom` should pass the W3C DOM conformance test suites.
The W3C provides a conformance test suite. http://www.w3.org/DOM/Test/
There is a full Java implementation from which to crib. The tests themselves are specified in XML, so one would only have to write a Node.js interpreter to read through the tests and apply them.
I'd propose building a test harness that reads through the tests. Then, creating an issue for each failed test, or more likely, picking a test to tackle, creating an issue so there's an opportunity for discussion, then submitting a pull request.
For easier reference: the CVS repo can no longer be checked out but https://github.com/gsnedders/dom-test-suite is a mirror.
- https://github.com/web-platform-tests/wpt/tree/master/domparsing
- https://github.com/web-platform-tests/wpt/tree/master/dom
- https://github.com/gsnedders/ihatexml/tree/master/W3C-Specs Might also be helpful