News for hackers. Stuff that matters.
Re:The evolution of the web, and a eulogy for XHTML2 by superkuh on Sunday October 27, 2019 @04:56AM (#21368571)
That last paragraph absolutely nails it. Trying to re-implement the operating system as the browser is mutually exclusive with it being a good browser or standard for webpages.

> If anyone constructed a PDF, which was itself blank but, via embedded JavaScript, loaded parts of itself from a remote server, people would rightly balk and wonder what on earth the creator of this PDF was thinking — yet this is precisely the design of many “websites”. To put it simply, websites and webapps are not the same thing, nor should they be. Yet the conflation of a platform for hypertext and a platform for applications has confused thinking, and led developers with prodigious aptitude for JavaScript to mistakenly see mere websites of text as a like nail to their applications hammer.

Re:The evolution of the web, and a eulogy for XHTML2 by nitwit005 on Sunday October 27, 2019 @07:15AM (#21369041)
It's worth remembering that, because there were no Javascript or HTML APIs for many things people felt their pages needed, a huge portion of the web was loading up flash, silverlight, or java applets.

Now, maybe they never should have allowed Flash and friends, but the genie was well out of the bottle. You could either have HTML and JS based functionality, or the plugins.

Re:The evolution of the web, and a eulogy for XHTML2 by zmix on Sunday October 27, 2019 @01:39PM (#21371171)
> It's worth remembering that, because there were no Javascript or HTML APIs for many things people felt their pages needed

The OA states in his article, that he is fine with many of the new APIs. It's not HTML5 vs. XHTML, it's 'applified web' vs. 'document web'. And I agree.

Re:The evolution of the web, and a eulogy for XHTML2 by skunkpocalypse on Sunday October 27, 2019 @08:36AM (#21369335)
WHATWG should have published a standard to replace Flash -- all the same goals as Flash, but a clean-slate standards-driven design.

Instead they infected the HTML standard with everything Flash was being used for.

Re:The evolution of the web, and a eulogy for XHTML2 by zozbot234 on Sunday October 27, 2019 @08:55AM (#21369408)
Um, they did exactly that via HTML canvas. Replacing the main use cases for both Flash and Java applets.
Re:The evolution of the web, and a eulogy for XHTML2 by andylynch on Sunday October 27, 2019 @05:30AM (#21368658)
I’ve seen PDFs like these- it’s one way for publishers of (costly!) industry research reports to allow limited downloads and still track who’s reading them (the kind where a copy is listed at 5000 USD for non subscribers). And they are horrible to use, but do serve a purpose.
Re:The evolution of the web, and a eulogy for XHTML2 by lucasverra on Sunday October 27, 2019 @07:11AM (#21369030)
what is interesting to notice is that is the research industry that gave birth to the web that this article rightfully wants to differentiate from document/application web
Re:The evolution of the web, and a eulogy for XHTML2 by shakna on Sunday October 27, 2019 @11:25AM (#21370280)
> If anyone constructed a PDF, which was itself blank but, via embedded JavaScript, loaded parts of itself from a remote server, people would rightly balk and wonder what on earth the creator of this PDF was thinking — yet this is precisely the design of many “websites”.

Unfortunately, this is also the case for many PDFs amongst some of the more niche use-cases. Like NDA-bound many-thousand paged specifications. The PDF standard lets you do it, so some do. Not all readers actually support embedded JS, but most do in some limited capacity.

Re:The evolution of the web, and a eulogy for XHTML2 by saagarjha on Sunday October 27, 2019 @12:25PM (#21370676)
Can you just print the PDF and get something reasonable out of it?
Re:The evolution of the web, and a eulogy for XHTML2 by shakna on Sunday October 27, 2019 @01:17PM (#21371011)
Yes and no. Whatever prints the PDF has to be able to run the JS payload.

In the case of a physical printer, it's usually set up so there's [redacted] instead of blankness (that the JS replaces), so you get redacted images and paragraphs.

In the case of software printing to a static PDF which you can then print, the JS payload is generally set up to embed a series of rather obvious markers so that if the static copy is ever publicly revealed, they can go after you (DRM is easy when you only have a dozen customers in the entire world), but most PDF software that supports JS also supports JS disabling printing features so that little disincentive is unnecessary.

Re:The evolution of the web, and a eulogy for XHTML2 by nathell on Sunday October 27, 2019 @08:05AM (#21369196)
Re:The evolution of the web, and a eulogy for XHTML2 by cousin_it on Sunday October 27, 2019 @09:05AM (#21369459)
Need more specifics how to keep the "web of documents" from being outcompeted by the modern web again.
Re:The evolution of the web, and a eulogy for XHTML2 by eitland on Sunday October 27, 2019 @12:14PM (#21370620)
If it is 10 times faster on average, safer and generally less annoying it might have a natural advantage.

We could get some of the advantages if we just started shunning JS and telling people ("Proudly Javascript-free and free of third party trackers! You might have noticed that this site loaded quicker than other sites you have seen lately. Mostly this is because we don't bug your machine with insert-carefully-crafted-explanation-here.")

Re:The evolution of the web, and a eulogy for XHTML2 by al2o3cr on Sunday October 27, 2019 @01:15PM (#21370989)
I don't follow how an XML advocate can complain about other things loading parts of themselves from remote servers:

https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Pr...