W3C home > Mailing lists > Public > public-html@w3.org > May 2007

Re: Unscoped <style> found outside the <head>

From: David Hyatt <hyatt@apple.com>
Date: Sun, 27 May 2007 01:10:47 -0700
Message-Id: <BC9BCBF6-881B-4E75-9AC1-37A719B2CF73@apple.com>
Cc: "Preston L. Bannister" <preston@bannister.us>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>, Dan Connolly <connolly@w3.org>, "public-html@w3.org WG" <public-html@w3.org>
To: Henri Sivonen <hsivonen@iki.fi>

On May 27, 2007, at 12:58 AM, Henri Sivonen wrote:

> On May 27, 2007, at 07:08, David Hyatt wrote:
>> that the HTML5 spec should limit the scoping to nodes that follow  
>> the <style> in a pre-order traversal of the tree.
> Making <style scoped> apply to nodes that follow the parent of  
> <style scoped> in document order traversal seems counter-intuitive  
> from the point of view of authoring documents. For authoring  
> intuitiveness, limiting the scope to the subtree rooted at the  
> parent of <style scoped> makes more sense.

I see what you mean.  However, I still don't think <style scoped>  
should apply to any prior content.  Ideally scoped would be defined  
in such a way that no re-resolution has to occur as you do a forward  
parse of the document.  What about the intersection of the two  
approaches?  Limiting the scope only to following siblings of <style>  
(and their descendants)?

Received on Sunday, 27 May 2007 08:35:06 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:13 UTC