W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

[whatwg] HTML5 doctypes incompatible with XHR if named entities present

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 11 Nov 2009 23:39:47 -0500
Message-ID: <4AFB9193.3070701@mit.edu>
On 11/11/09 11:16 PM, Aryeh Gregor wrote:
> I'm pretty sure that XHR is used for screen-scraping beyond Wikipedia,

Since it'd fail any time the data is not well-formed XML, I'd actually 
expect such usage to be rare.  It's not all that common to find "XHTML" 
on the web that happens to be well-formed XML.

>   Could some reasonably minimal, distinctive doctype be invented that
> would avoid the problem but not make the document look to humans and
> validators like it thinks it's some old version of XHTML?

Yes, but browsers would have to add explicit support for it.

> Also, is this a wider problem?  Are there any other tools besides
> browsers that might be magically allowing named entities for some
> doctypes only?

Sure; anything that actually goes and loads the DTD.

-Boris
Received on Wednesday, 11 November 2009 20:39:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC