[webkit-dev] Fwd: Accept Header and application/xml

Tobias Tom tobiastom at gmail.com
Thu Jan 7 10:09:04 PST 2010


Hey Alexey,

2010/1/7 Alexey Proskuryakov <ap at webkit.org>:
>
> 07.01.2010, в 07:53, Tobias Tom написал(а):
>
>> My real-life problem here is the following: A resource is available inside an (machine-optmized) XML format and in (human optimized) HTML format under the same URL. Webkit will always get the XML version. Is there any reason for that?
>
> Historically, this is a result of mimicking what Firefox did at some point.

Thanks for the information.

> They don't do that any more, so I think that WebKit should prefer text/html, too. As of version 3.5, Firefox sends (for main resources):
>
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>
> <https://bugs.webkit.org/show_bug.cgi?id=27267> tracks this problem.

I fully agree that this would help everyone. Sorry for not researching
the issue first.

>> I can understand the fact that xhtml should be preferred before html, but Webkit itself is not able to render application/xml in a human format anyway (no offense here, I think that's really ok).
>
> Actually, WebKit can render plain XML if it has an appropriate XSL stylesheet (e.g. one that converts it to HTML, or to SVG). Also, XHTML or SVG can be sent as application/xml. But anyway, we should probably just mimic Firefox again.

Of course you are right, still for most XML files there's none – but
that's another topic.

Thank you for your time.
Tobias


More information about the webkit-dev mailing list