- From: Simon Pieters <simonp@opera.com>
- Date: Mon, 03 Jan 2011 08:27:39 +0100
- To: "Toby Inkster" <tai@g5n.co.uk>
- Cc: "HTML WG" <public-html@w3.org>, "Boris Zbarsky" <bzbarsky@mit.edu>
On Sun, 02 Jan 2011 00:11:34 +0100, Toby Inkster <tai@g5n.co.uk> wrote: > On Mon, 27 Dec 2010 13:11:24 +0100 > "Simon Pieters" <simonp@opera.com> wrote: > >> For styling languages that consist of pure text > > This seems to me that the agent needs to know which styling languages > "consist of pure text" Only among the styling languages that the agent supports. > (whatever that means! does CSS consist of pure > text? does XML?) If the style system expects a string as input, then it's "pure text", if the style system expects a series of DOM nodes, then it's not. At least, that's my interpretation considering the rest of the paragraph. > I'd suggest something along the lines of... > > For <style> elements where the type attribute matches /\/(.+\+)xml$/i > the style sheet consists of the DOM subtree within the <style> element. > Any other styling languages consist of pure text; user agents must > evaluate style elements by passing the concatenation of the contents of > all the text nodes that are direct children of the style element (not > any other nodes such as comments or elements), in tree order, to the > style system. > -- Simon Pieters Opera Software
Received on Monday, 3 January 2011 07:28:24 UTC