This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9410 - Say that 'default-style' can be set via HTTP (in addition to via HTTP-EQUIV)
Summary: Say that 'default-style' can be set via HTTP (in addition to via HTTP-EQUIV)
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/semantic...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-05 12:40 UTC by Leif Halvard Silli
Modified: 2010-10-04 13:58 UTC (History)
5 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2010-04-05 12:40:11 UTC
HTML4 tells how to set the 'default-style'  via the server as well as via a META declaration.

http://localhost/~s/merkjemål/html4/present/styles.html#h-14.2.1

At least Mozilla browsers obey both. 

Please spec that 'default-style' can be defined either by the server or by a META declaration.
Comment 1 Leif Halvard Silli 2010-04-05 12:51:58 UTC
The link to HTML4 was meant to be: http://www.w3.org/TR/html4/present/styles#h-14.2.1 

As part of the solution to this bug, please say that if the value of the default-style META declaration is the empty string,

<META http-equiv="default-style" content="<emptystring>"> 

then the user agent will go an look for what the http-header says. 

(This is how Mozilla browsers behave, and is also congruent with what the spec says about how user agents should behave whenever the META 'content-language' declaration is the empty string.)
Comment 2 Leif Halvard Silli 2010-04-05 18:38:26 UTC
(In reply to comment #1)
> The link to HTML4 was meant to be:
> http://www.w3.org/TR/html4/present/styles#h-14.2.1 
> 
> As part of the solution to this bug, please say that if the value of the
> default-style META declaration is the empty string,
> 
> <META http-equiv="default-style" content="<emptystring>"> 
> 
> then the user agent will go an look for what the http-header says. 
> 
> (This is how Mozilla browsers behave, and is also congruent with what the spec
> says about how user agents should behave whenever the META 'content-language'
> declaration is the empty string.)


It turns out that this claim about Mozilla was incorrect. The following http-equiv,
   <META http-equiv="default-style" content="<empty-string>">

will make the following style sheet
   <style title="<empsty-string>">...</style>

the preferred style sheet! (Tested in Webkit and Mozilla.)
Comment 3 Ian 'Hixie' Hickson 2010-04-13 00:05:52 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: This is out of scope for HTML. The HTTP header isn't in HTML and doesn't affect HTML. It should either be defined in CSSOM, or in HTTP, or in its own spec.