Implemented the first few W3C DOM compatibility methods, added some tests for the new code. Work in progress.