W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2007

[whatwg] Style sheet loading and parsing (over HTTP)

From: Gervase Markham <gerv@mozilla.org>
Date: Fri, 25 May 2007 10:41:52 +0100
Message-ID: <4656AF60.2060007@mozilla.org>
Jon Barnett wrote:
> I would propose that the "type" attribute be more meaningful on, for 
> example, the <a> element and the <object> element:
> - If the "type" attribute is present, the UA must use its value as the 
> value of the Accept request header when requesting a resource

This does not help in the scenario I mention because the link which is 
used is in the spammer's email - and they are unlikely to be so obliging 
as to set the "type" attribute correctly to warn Bugzilla.

The plain fact is that the only way for the sensible mitigation strategy 
to work is for the browser to respect what the server tells it. Perhaps 
we should invent a new header, 
Really-Honestly-The-Content-Type-I-Promise, which browsers were forced 
to respect? <sigh>

> That would allow, for example, Bugzilla to use <a type="text/plain"> 
> when linking to an attachment without fear that the attachment might be 
> sniffed as text/html.

See above.

Received on Friday, 25 May 2007 02:41:52 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:55 UTC