This is the DOM emulating the core.
This has been essentially completed. As new features are added more code will be added for testing.