import arsd.dom; void main() { auto document = new Document(); // The example document will be defined inline here // We could also load the string from a file with std.file.readText // or the web with std.net.curl.get //document.parseGarbage("foo.html"); //version(none) document.parseGarbage(` Test Document

This is the first paragraph of our test document.

This second paragraph also has a link.

Old text

`); import std.stdio; writeln(document.title); writeln(document.getMeta("author")); writeln(document.requireSelector("p").innerText); document["a[href]"].setValue("source", "your-site"); document.requireElementById("custom-paragraph").innerHTML = "New HTML!"; writeln(document.toString()); }