@jlinehan started working on {T217867} and has a first cut version ready.
This is a tracker task to outline the tasks to complete that port and integration. Subtasks will cover those different pieces.
The porting will be bounded by the following constraints (similar to domino.js)
* We will only target DOM4 spec.
* We will not support dynamic script loading, and document.write fucntionality.
* We may not support events.
* Given the limited functionality we are targeting as above, full W3C spec test suite compliance not a goal. But, Domino test suite compliance is a goal. Subtasks will specify the exact test suites and degree of test compliance expected.
In the end, for use within the Wikimedia Foundation, this DOM library's use will be bounded by how libxml + PHP-DOM are used. So, as a rule of thumb, when making prioritization choices about what to implement and what to leave out, leave out anything that is not essential for the first-cut replacement of libxml + PHP-DOM combo.