2929 < div class =head >
3030 < h1 id =cssom > Cascading Style Sheets Object Model (< abbr > CSSOM</ abbr > )</ h1 >
3131
32- < h2 class ="no-num no-toc " id =""> Editor's Draft 27 December 2007</ h2 >
32+ < h2 class ="no-num no-toc " id =""> Editor's Draft 28 December 2007</ h2 >
3333
3434 < dl >
3535 < dt > This version:
3636
3737 < dd > < a
3838 href ="http://dev.w3.org/csswg/cssom/ "> http://dev.w3.org/csswg/cssom/</ a > </ dd >
39- <!--<dd><a href="http://www.w3.org/TR/2007/ED-cssom-20071227 /">http://www.w3.org/TR/2007/WD-cssom-20071227 /</a></dd>-->
39+ <!--<dd><a href="http://www.w3.org/TR/2007/ED-cssom-20071228 /">http://www.w3.org/TR/2007/WD-cssom-20071228 /</a></dd>-->
4040
4141 < dt > Latest version:
4242
@@ -407,7 +407,9 @@ <h3 id=style0><span class=secno>3.1. </span>Style Sheet</h3>
407407 href ="#style-sheet " title ="style sheet "> style sheets</ a > with the < a
408408 href ="#style-sheet-alternate-flag "> style sheet alternate flag</ a > set to
409409 < i > true</ i > and the < a href ="#style-sheet-title "> style sheet title</ a > set
410- to the empty string.
410+ to the empty string. In addition they < em class =ct > must not</ em > allow the
411+ creation of < a href ="#style-sheet " title ="style sheet "> style sheets</ a >
412+ for which the user agent does not support the style sheet language.
411413
412414 < h4 id =the-stylesheet > < span class =secno > 3.1.1. </ span > The < code
413415 title =""> StyleSheet</ code > Interface</ h4 >
@@ -1301,9 +1303,10 @@ <h5 id=examples0><span class=secno>4.1.1.1. </span>Examples of the CSS
13011303
13021304 < h4 id =selectors > < span class =secno > 4.1.2. </ span > Selectors Rules</ h4 >
13031305
1304- < p > The rules for < dfn id =parsing1 title =selectors-parsing > parsing a group
1305- of selectors</ dfn > are as given in the following algorithm. The return
1306- value is either a group of selectors or "null" (if parsing failed).
1306+ < p > The rules for < dfn id =selectors-parsing title ="selectors
1307+ parsing "> parsing a group of selectors</ dfn > are as given in the following
1308+ algorithm. The return value is either a group of selectors or "null" (if
1309+ parsing failed).
13071310
13081311 < ol >
13091312 < li > Parse the value using the < code > selectors_group</ code > production. If
@@ -1313,7 +1316,7 @@ <h4 id=selectors><span class=secno>4.1.2. </span>Selectors Rules</h4>
13131316 < p > The aforementioned production is defined in the Selectors specification.
13141317 [Selectors]
13151318
1316- < p > The rules for < dfn id =serializing0 title ="selectors
1319+ < p > The rules for < dfn id =selectors-serializing title ="selectors
13171320 serializing "> serializing a group of selectors</ dfn > are as given in the
13181321 following algorithm. The input is a a non-normalized group of selectors
13191322 and the output is a normalized group of selectors.
@@ -1347,10 +1350,11 @@ <h4 id=selectors><span class=secno>4.1.2. </span>Selectors Rules</h4>
13471350
13481351 < h4 id =css-page > < span class =secno > 4.1.3. </ span > CSS Page Selectors Rules</ h4 >
13491352
1350- < p class =issue > Need to define the rules for < dfn id =parsing2 title ="CSS
1351- page selector parsing "> parsing a CSS page selector</ dfn > and < dfn
1352- id =serializing1 title ="CSS page selector serializing "> serializing a CSS
1353- page selector</ dfn > .
1353+ < p class =issue > Need to define the rules for < dfn
1354+ id =css-page-selectors-parsing title ="CSS page selectors parsing "> parsing a
1355+ CSS page selector</ dfn > and < dfn id =css-page-selectors-serializing
1356+ title ="CSS page selectors serializing "> serializing a CSS page
1357+ selector</ dfn > .
13541358
13551359 < h4 id =processing > < span class =secno > 4.1.4. </ span > Processing CSS Statements</ h4 >
13561360
@@ -1487,7 +1491,8 @@ <h3 id=the-cssrulelist><span class=secno>4.3. </span>The <code
14871491 title =""> CSSRuleList</ code > Interface</ h3 >
14881492
14891493 < p > The < code > < a href ="#cssrulelist "> CSSRuleList</ a > </ code > object
1490- represents an (ordered) list of statements.
1494+ represents an ordered collection of CSS statements.</ p >
1495+ <!-- starting at 0 -->
14911496
14921497 < pre class =idl > interface < dfn id =cssrulelist > CSSRuleList</ dfn > {
14931498 readonly attribute unsigned long < a href ="#cssrulelist-length " title =cssrulelist-length > length</ a > ;
@@ -1506,7 +1511,7 @@ <h3 id=the-cssrulelist><span class=secno>4.3. </span>The <code
15061511 this method < em class =ct > must</ em > return < code > null</ code > . Otherwise,
15071512 this method < em class =ct > must</ em > return the < code > < a
15081513 href ="#cssrule "> CSSRule</ a > </ code > in the list given by < var
1509- title =""> index</ var > . <!-- negative numbers -->
1514+ title =""> index</ var > . <!-- XXX negative numbers -->
15101515
15111516 < h3 id =interfaces > < span class =secno > 4.4. </ span > Interfaces for CSS
15121517 Statements</ h3 >
@@ -1517,8 +1522,9 @@ <h3 id=interfaces><span class=secno>4.4. </span>Interfaces for CSS
15171522 < h4 id =the-cssrule > < span class =secno > 4.4.1. </ span > The < code
15181523 title =""> CSSRule</ code > Interface</ h4 >
15191524
1520- < p > The < code > < a href ="#cssrule "> CSSRule</ a > </ code > interface is the base
1521- interface from which all other CSS statement interfaces inherit.
1525+ < p > The < code > < a href ="#cssrule "> CSSRule</ a > </ code > interface a base
1526+ interface. Each specific CSS statement has an interface which inherits
1527+ from this one.
15221528
15231529 < pre class =idl > interface < dfn id =cssrule > CSSRule</ dfn > {
15241530 // CSS statement type
@@ -1537,26 +1543,27 @@ <h4 id=the-cssrule><span class=secno>4.4.1. </span>The <code
15371543 readonly attribute < a href ="#cssrule "> CSSRule</ a > < a href ="#cssrule-parentrule " title =cssrule-parentrule > parentRule</ a > ;
15381544 readonly attribute < a href ="#cssstylesheet "> CSSStyleSheet</ a > < a href ="#cssrule-parentstylesheet " title =cssrule-parentstylesheet > parentStyleSheet</ a > ;
15391545};</ pre >
1546+ <!-- 0 is CSSUnknownRule and 2 is CSSCharsetRule, both dropped -->
15401547
15411548 < p > The < dfn id =cssrule-type title =cssrule-type > < code > type</ code > </ dfn >
15421549 attribute, on getting, < em class =ct > must</ em > return the CSS statement
15431550 type as detailed for each specific type.
15441551
15451552 < p > The < dfn id =cssrule-csstext
1546- title =cssrule-csstext > < code > cssText</ code > </ dfn > attribute allows for
1547- replacing a CSS statement or getting a textual representation. On setting,
1548- user agents < em class =ct > must</ em > < a href ="#replacing "> replace a
1549- statement</ a > where < var > rule</ var > is the value being set and < var > old
1550- object</ var > is the object of which this attribute is set.
1553+ title =cssrule-csstext > < code > cssText</ code > </ dfn > attribute, on setting,
1554+ < em class =ct > must</ em > < a href ="#replacing "> replace a statement</ a > where
1555+ < var > rule</ var > is the value being set and < var > old object</ var > is the
1556+ object of which this attribute is set.
15511557
15521558 < p > On getting the < code title =cssrule-csstext > < a
15531559 href ="#cssrule-csstext "> cssText</ a > </ code > attribute, < span
1554- class =issue > ...</ span > .
1560+ class =issue > ...</ span > .</ p >
1561+ <!-- XXX the serialization depends on the type -->
15551562
15561563 < p > The < dfn id =cssrule-parentrule
15571564 title =cssrule-parentrule > < code > parentRule</ code > </ dfn > attribute < em
15581565 class =ct > must</ em > return the nearest enclosing rule of the current rule
1559- or < code > null</ code > if there is no enclosing rule. For example, an < code
1566+ or < code > null</ code > , if there is no enclosing rule. For example, an < code
15601567 title =""> @media</ code > block enclosing the current rule.
15611568
15621569 < p > The < dfn id =cssrule-parentstylesheet
@@ -1604,20 +1611,14 @@ <h4 id=the-cssstylerule><span class=secno>4.4.2. </span>The <code
16041611};</ pre >
16051612
16061613 < p > The < dfn id =cssstylerule-selectortext
1607- title =cssstylerule-selectortext > < code > selectorText</ code > </ dfn > attribute
1608- allows for manipulation of the associated group of selectors or getting a
1609- textual representation of them. On setting, user agents < em
1610- class =ct > must</ em > parse the given string as a group of selectors. If the
1611- given string is ignored user agents < em class =ct > must</ em > act as if
1612- setting did not occur. Otherwise, set the attribute to the parsed string
1613- and re-apply the style rules stored in the < code
1614- title =cssstylerule-style > < a href ="#cssstylerule-style "> style</ a > </ code >
1615- attribute.
1616-
1617- < p > When getting the < code title =cssstylerule-selectortext > < a
1618- href ="#cssstylerule-selectortext "> selectorText</ a > </ code > attribute it < em
1619- class =ct > must</ em > return a < span title =canon-selectors > textual
1620- representation of the group of selectors</ span > .
1614+ title =cssstylerule-selectortext > < code > selectorText</ code > </ dfn > attribute,
1615+ on getting, < em class =ct > must</ em > return the result of < a
1616+ href ="#selectors-serializing " title ="selectors serializing "> serializing a
1617+ group of selectors</ a > . On setting, the setted value < em
1618+ class =ct > must</ em > be used as input for < a href ="#selectors-parsing "
1619+ title ="selectors parsing "> parsing a group of selectors</ a > and if that
1620+ returns a non-"null" value that is to be used as a selector for the CSS
1621+ statement.
16211622
16221623 < p > The < dfn id =cssstylerule-style
16231624 title =cssstylerule-style > < code > style</ code > </ dfn > attribute < em
@@ -1768,20 +1769,14 @@ <h4 id=the-csspagerule><span class=secno>4.4.6. </span>The <code
17681769};</ pre >
17691770
17701771 < p > The < dfn id =csspagerule-selectortext
1771- title =csspagerule-selectortext > < code > selectorText</ code > </ dfn > allows for
1772- setting a new page selector or getting the textual representation of the
1773- current one. On setting, user agents < em class =ct > must</ em > parse the
1774- given string as a page selector. If the given string is ignored user
1775- agents < em class =ct > must</ em > act as if setting did not occur. Otherwise,
1776- the attribute < em class =ct > must</ em > be set to the parsed string and the
1777- styles < em class =ct > must</ em > be re-applied.
1778-
1779- < p > When getting the < code title =csspagerule-selectortext > < a
1780- href ="#csspagerule-selectortext "> selectorText</ a > </ code > attribute it < em
1781- class =ct > must</ em > return a textual representation of the page selector
1782- for the rule.
1783-
1784- < p class =issue > We need to define normalization...
1772+ title =csspagerule-selectortext > < code > selectorText</ code > </ dfn > attribute,
1773+ on getting, < em class =ct > must</ em > return the result of < a
1774+ href ="#css-page-selectors-serializing " title ="CSS page selectors
1775+ serializing "> serializing CSS page selectors</ a > . On setting, the setted
1776+ value < em class =ct > must</ em > be used as input for < a
1777+ href ="#css-page-selectors-parsing " title ="CSS page selectors
1778+ parsing "> parsing CSS page selectors</ a > and if that returns a non-"null"
1779+ value that is to be used as a selector for the < code > @page</ code > rule.
17851780
17861781 < p > The < dfn id =csspagerule-style
17871782 title =csspagerule-style > < code > style</ code > </ dfn > attribute, on getting,
0 commit comments