Re: NU’s polyglot possibilities (Was: The non-polyglot elephant in the room)

Alex,

Le 24 janv. 2013 à 17:14, Alex Russell a écrit :
> who benefits from the creation of polyglot documents?

I'm not sure I have the answer, but let's share a personal use case. To be honest I'm not sure it is entirely in the polyglot paradigm, but first of all:

> I don't understand why that ecosystem doesn't protect its borders by transforming HTML documents (via an HTML parser->DOM->XML serialization) to XML.

complexity and knowledge/habits with regards to one techno.

Now for my own use case (not mainstream, very specific and honestly, it's working for me as it is without really being polyglot).

In the spirit of bake not fried, I serve static files. The Web site is managed off the grid with scripts on my local computer. All the files are in "HTML5 with a king of xhtml syntax" no empty elements, double quotes. This allows me two very simple things:

* a poor man well-formed check in the browser when I'm editing the document. (application/xhtml+xml)
* a possibility to use an xml toolchain to parse the document and produces a few things such as a feed, etc.

then when the document is synced online, I can just serve it as text/html

As I said, not a point on promoting polyglot, just an explanation (triggered by your comment) on why some people may use both content-types at the level of the document itself.

/me is returning to the evasnescence of internet limbos. 


-- 
Karl Dubost, a Web opener to hire
http://www.la-grange.net/karl/

Received on Friday, 25 January 2013 16:08:51 UTC