Nope, view
functions as intended.
The text in the post says: "Below is the code of a rudimentary viewer for a DOM structure of an HTML page". So view
shows the "skeleton" of the web page DOM structure, which is occasionally handy. It was never claimed in the post that view
would allow one to actually view a web page in a way similar to the web browser experience. This would've been a vastly harder problem to solve in WL, and also rather useless - if one needs to view a web page, one should just use the browser.