3535 < div class =head >
3636 < h1 id =cssom > Cascading Style Sheets Object Model (< abbr > CSSOM</ abbr > )</ h1 >
3737
38- < h2 class ="no-num no-toc " id =""> Editor's draft <!--W3C Working Draft--> 25
39- February 2007</ h2 >
38+ < h2 class ="no-num no-toc " id =""> Editor's draft <!--W3C Working Draft--> 11
39+ May 2007</ h2 >
4040
4141 < dl >
42- < dt > This version:
42+ < dt > This version:</ dt >
43+ <!--
44+ <dd><a href="http://www.w3.org/TR/2007/WD-cssom-20070511/">http://www.w3.org/TR/2007/WD-cssom-20070511/</a></dd>
45+ -->
4346
44- < dd > < a
45- href ="http://www.w3.org/TR/2007/WD-cssom-20070225/ "> http://www.w3.org/TR/2007/WD-cssom-20070225/</ a >
47+ < dd > ...
4648
47- < dt > Latest version:
49+ < dt > Latest version:</ dt >
50+ <!--
51+ <dd><a href="http://www.w3.org/TR/cssom/">http://www.w3.org/TR/cssom/</a></dd>
52+ -->
4853
49- < dd > < a href =" http://www.w3.org/TR/cssom/ " > http://www.w3.org/TR/cssom/ </ a >
54+ < dd > ...
5055
5156 < dt > Previous versions:
5257
@@ -106,7 +111,7 @@ <h2 class="no-num no-toc" id=toc>Table of Contents</h2>
106111 </ span > Requirements on specifications</ a >
107112
108113 < li > < a href ="#requirements0 "> < span class =secno > 2.2.2.
109- </ span > Requirements on specific user agents</ a >
114+ </ span > Requirements on SVG user agents</ a >
110115
111116 < li > < a href ="#ltxml-stylesheet "> < span class =secno > 2.2.3.
112117 </ span > < code > <?xml-stylesheet?> </ code > processing instruction</ a >
@@ -323,9 +328,7 @@ <h3 id=history><span class=secno>1.1. </span>History</h3>
323328 title ="[CSSOM] CSSValue and related interfaces (message from the CSS
324329 WG) "> have been obsoleted</ a > because they where thought to be too akward
325330 for frequent use. This specification no longer contains those features.
326-
327- < p > In addition, < code > DOMImplementationCSS</ code > has been removed as well,
328- because there was no use case provided in DOM Level 2 Style.
331+ < code > DOMImplementationCSS</ code > has been removed as well.
329332
330333 < h3 id =conformance > < span class =secno > 1.2. </ span > Conformance Requirements</ h3 >
331334
@@ -482,7 +485,7 @@ <h3 id=the-linkstyle><span class=secno>2.2. </span>The <code><a
482485 </ dl >
483486
484487 < p class =note > Whether or not the node refers to a style sheet is defined by
485- the specification the defines the semantics of said node.
488+ the specification that defines the semantics of said node.
486489
487490 < h4 id =requirements > < span class =secno > 2.2.1. </ span > Requirements on
488491 specifications</ h4 >
@@ -496,21 +499,17 @@ <h4 id=requirements><span class=secno>2.2.1. </span>Requirements on
496499 title =linkstyle-sheet > < a href ="#linkstyle-sheet "> sheet</ a > </ code > is
497500 non-< code > null</ code > ).
498501
499- < h4 id =requirements0 > < span class =secno > 2.2.2. </ span > Requirements on
500- specific user agents</ h4 >
502+ < h4 id =requirements0 > < span class =secno > 2.2.2. </ span > Requirements on SVG
503+ user agents</ h4 >
504+ <!-- Not needed for HTML. -->
505+
506+ < p > < em > This section applies to user agents supporting SVG.</ em >
501507
502508 < p > SVG user agents < em class =ct > must</ em > implement < code > < a
503509 href ="#linkstyle "> LinkStyle</ a > </ code > on objects implementing the
504- < code > SVGStyleElement</ code > interface. HTML user agents < em
505- class =ct > must</ em > implement < code > < a
506- href ="#linkstyle "> LinkStyle</ a > </ code > on objects implementing
507- < code > HTMLLinkElement</ code > or < code > HTMLStyleElement</ code > . They < em
508- class =ct > must</ em > also implement it on objects implementing
509- < code > HTMLMetaElement</ code > if the < code > Link</ code > HTTP header is
510- supported.
510+ < code > SVGStyleElement</ code > interface.
511511
512- < p class =issue > Perhaps the above should be left to the HTML and SVG
513- specifications.
512+ < p class =issue > Should SVG define this instead?
514513
515514 < h4 id =ltxml-stylesheet > < span class =secno > 2.2.3.
516515 </ span > < code > <?xml-stylesheet?> </ code > processing instruction</ h4 >
@@ -523,7 +522,7 @@ <h4 id=ltxml-stylesheet><span class=secno>2.2.3.
523522 < p > If the < code title =""> target</ code > DOM attribute of the
524523 < code > ProcessingInstruction</ code > is not < code > xml-stylesheet</ code > or
525524 if the < code > href</ code > pseudo-attribute of the processing instruction
526- doesn't point to an external resource or does point to an external
525+ does not point to an external resource or does point to an external
527526 resource that has not yet been downloaded the < code
528527 title =linkstyle-sheet > < a href ="#linkstyle-sheet "> sheet</ a > </ code >
529528 attribute < em class =ct > must</ em > be < code > null</ code > . Otherwise, if the
@@ -575,7 +574,7 @@ <h3 id=the-documentstyle><span class=secno>2.3. </span>The <code><a
575574};</ pre >
576575
577576 < p > For this interface, the < code > DOMString</ code > values < code > null</ code >
578- and "the empty string" are distinct, and < em class =ct > must</ em > not be
577+ and "the empty string" are distinct and < em class =ct > must</ em > not be
579578 considered equivalent.
580579
581580 < p > The members are defined as follows:
@@ -590,7 +589,7 @@ <h3 id=the-documentstyle><span class=secno>2.3. </span>The <code><a
590589 collection of all < code > < a href ="#linkstyle "> LinkStyle</ a > </ code >
591590 objects with a non-< code > null</ code > < code title =linkstyle-sheet > < a
592591 href ="#linkstyle-sheet "> sheet</ a > </ code > attribute in document order
593- preceeded by style sheets introduced through HTTP headers.</ p >
592+ preceded by style sheets introduced through HTTP headers.
594593
595594 < dt > < dfn
596595 id =documentstyle-selectedStyleSheetSet > < code > selectedStyleSheetSet</ code > </ dfn >
@@ -642,7 +641,7 @@ <h3 id=the-documentstyle><span class=secno>2.3. </span>The <code><a
642641 of type < code > DOMString</ code > , readonly
643642
644643 < dd >
645- < p > This property < em class =ct > must</ em > initially have the value
644+ < p > This attribute < em class =ct > must</ em > initially have the value
646645 < code > null</ code > . Its value changes when the < code > < a
647646 href ="#documentstyle-selectedStyleSheetSet "> selectedStyleSheetSet</ a > </ code >
648647 attribute is set.</ p >
@@ -1683,6 +1682,8 @@ <h4 id=the-viewcss><span class=secno>3.5.3. </span>The <code><a
16831682 < h4 id =the-documentcss > < span class =secno > 3.5.4. </ span > The < code > < a
16841683 href ="#documentcss "> DocumentCSS</ a > </ code > Interface</ h4 >
16851684
1685+ < p class =issue > I think I'll drop this soon!
1686+
16861687 < p > This interface represents a document with a CSS view.</ p >
16871688 <!--
16881689 so this is how this all comes together:
@@ -2302,6 +2303,10 @@ <h4 id=the-screen><span class=secno>4.1.1. </span>The <code><a
23022303 < h3 id =the-elementlayout > < span class =secno > 4.2. </ span > The < code > < a
23032304 href ="#elementlayout "> ElementLayout</ a > </ code > Interface</ h3 >
23042305
2306+ < p > Objects implementing the < code > Element</ code > interface < em
2307+ class =ct > must</ em > also implement the < code > < a
2308+ href ="#elementlayout "> ElementLayout</ a > </ code > interface. [DOM3Core]
2309+
23052310 < pre class =idl > interface < dfn id =elementlayout > ElementLayout</ dfn > {
23062311 < a href ="#textrectanglelist "> TextRectangleList</ a > < a href ="#elementlayout-getclientrects "> getClientRects</ a > ();
23072312 < a href ="#textrectangle "> TextRectangle</ a > < a href ="#elementlayout-getboundingclientrect "> getBoundingClientRect</ a > ();
@@ -2383,24 +2388,35 @@ <h4 id=the-getclientrects><span class=secno>4.2.1. </span>The <code><a
23832388 < h5 id =the-textrectanglelist > < span class =secno > 4.2.1.1. </ span > The < code > < a
23842389 href ="#textrectanglelist "> TextRectangleList</ a > </ code > Interface</ h5 >
23852390
2391+ < p > The < code > < a href ="#textrectanglelist "> TextRectangleList</ a > </ code >
2392+ object consists of an ordered list of < code > < a
2393+ href ="#textrectangle "> TextRectAngle</ a > </ code > objects.
2394+
23862395 < pre
23872396 class =idl > interface < dfn id =textrectanglelist > TextRectangleList</ dfn > {
23882397 readonly attribute unsigned long < a href ="#textrectanglelist-length " title =textrectanglelist-length > length</ a > ;
2389- < a href ="#textrectangle "> TextRectangle</ a > < a href ="#textrectanglelist-item " title =textrectanglelist-item > item</ a > (< var title =""> index</ var > );
2398+ < a href ="#textrectangle "> TextRectangle</ a > < a href ="#textrectanglelist-item " title =textrectanglelist-item > item</ a > (in unsigned long < var title =""> index</ var > );
23902399};</ pre >
23912400
23922401 < dl class =members >
23932402 < dt > < dfn id =textrectanglelist-length
23942403 title =textrectanglelist-length > < code > length</ code > of type < code > unsigned
23952404 long</ code > , readonly</ dfn >
23962405
2397- < dd > ...
2406+ < dd > This attribute < em class =ct > must</ em > return the number of < code > < a
2407+ href ="#textrectangle "> TextRectangle</ a > </ code > objects associated with
2408+ the object.
23982409
23992410 < dt > < dfn id =textrectanglelist-item
24002411 title =textrectanglelist-item > < code > item(< var
24012412 title =""> index</ var > )</ code > , method</ dfn >
24022413
2403- < dd > ...
2414+ < dd > When invoked, if < var title =""> index</ var > is negative or greater than
2415+ the number of < code > < a href ="#textrectangle "> TextRectangle</ a > </ code >
2416+ objects associated with the object an < code > INDEX_SIZE_ERR</ code >
2417+ exception < em class =ct > must</ em > be raised. Otherwise, the < code > < a
2418+ href ="#textrectangle "> TextRectangle</ a > </ code > object at < var
2419+ title =""> index</ var > < em class =ct > must</ em > be returned.
24042420 </ dl >
24052421
24062422 < h5 id =the-textrectangle > < span class =secno > 4.2.1.2. </ span > The < code > < a
0 commit comments