W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] WA1: <style> element content model

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 18 Jul 2005 08:45:28 -0400
Message-ID: <42DBA468.30503@inkedblade.net>
# For styling languages that consist of pure text, user agents must use a
# concatenation of the contents of all the text nodes and CDATA nodes that are
# direct children of the style  element (ignoring any other nodes such as
# comments or elements), in tree order.

This does not give the intended behavior in the following two HTML documents:

  HTML document:

   <style type="text/css">
      .foo { content: "<foo></foo>" }

  HTML document:

   <style type="text/css">
      .foo { color: blue }

# For XML-based styling languages, user agents must use all the children
# nodes of the style element as the style.

Are HTML documents allowed to use such XML-based styling languages in
the <style> element as well?

Received on Monday, 18 July 2005 05:45:28 UTC

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