Skip to content

Commit e64f078

Browse files
author
Simon Pieters
committed
[cssom] Editorial: tweaks and fixes
1 parent 799721b commit e64f078

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

cssom/Overview.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ <h3 id="css-style-sheets"><span class="secno">6.1 </span>CSS Style Sheets</h3>
825825
<a href="#css-style-sheet">CSS style sheet</a> or null if the <a href="#css-style-sheet">CSS style sheet</a> was
826826
embedded. Does not change during the lifetime of the <a href="#css-style-sheet">CSS style sheet</a>.</dd>
827827

828-
<dt><dfn id="concept-css-style-sheet-parent" title="concept-css-style-sheet-parent">parent</dfn></dt>
828+
<dt><dfn id="concept-css-style-sheet-parent-css-style-sheet" title="concept-css-style-sheet-parent-css-style-sheet">parent CSS style sheet</dfn></dt>
829829
<dd><p>Specified when created. The <a href="#css-style-sheet">CSS style sheet</a> that is the parent of the
830830
<a href="#css-style-sheet">CSS style sheet</a> or null if there is no associated parent.</dd>
831831

@@ -834,7 +834,7 @@ <h3 id="css-style-sheets"><span class="secno">6.1 </span>CSS Style Sheets</h3>
834834
null if there is no associated DOM node.</dd>
835835

836836
<dt><dfn id="concept-css-style-sheet-owner-css-rule" title="concept-css-style-sheet-owner-css-rule">owner CSS rule</dfn></dt>
837-
<dd><p>Specified when created. The <a href="#css-rule">CSS rule</a> in the <a href="#concept-css-style-sheet-parent" title="concept-css-style-sheet-parent">parent</a>
837+
<dd><p>Specified when created. The <a href="#css-rule">CSS rule</a> in the <a href="#concept-css-style-sheet-parent-css-style-sheet" title="concept-css-style-sheet-parent-css-style-sheet">parent CSS style sheet</a>
838838
that caused the inclusion of the <a href="#css-style-sheet">CSS style sheet</a> or null if
839839
there is no associated rule.</dd>
840840

@@ -930,7 +930,7 @@ <h4 id="the-stylesheet-interface"><span class="secno">6.1.1 </span>The <code tit
930930
node</a>.</p>
931931

932932
<p>The <dfn id="dom-stylesheet-parentstylesheet" title="dom-StyleSheet-parentStyleSheet"><code>parentStyleSheet</code></dfn> attribute must return the
933-
<a href="#concept-css-style-sheet-parent" title="concept-css-style-sheet-parent">parent</a>.</p>
933+
<a href="#concept-css-style-sheet-parent-css-style-sheet" title="concept-css-style-sheet-parent-css-style-sheet">parent CSS style sheet</a>.</p>
934934

935935
<p>The <dfn id="dom-stylesheet-title" title="dom-StyleSheet-title"><code>title</code></dfn> attribute must return the <a href="#concept-css-style-sheet-title" title="concept-css-style-sheet-title">title</a> or null if
936936
<a href="#concept-css-style-sheet-title" title="concept-css-style-sheet-title">title</a> is the empty string.</p>
@@ -1530,10 +1530,10 @@ <h4 id="requirements-on-user-agents-implementing-the-xml-stylesheet-processing-i
15301530
<li><p>Let <var>input URL</var> be the value specified by the
15311531
<code title="">href</code> <a class="external" data-anolis-spec="xmlss" href="http://www.w3.org/TR/xml-stylesheet/#dt-pseudo-attribute">pseudo-attribute</a>.
15321532

1533-
<li><p>Let <var>base URL</var> be the processing instruction's <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node-document" title="concept-node-document">node document</a>'s
1533+
<li><p>Let <var>base URL</var> be <var>node</var>'s <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node-document" title="concept-node-document">node document</a>'s
15341534
<a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#document-base-url">document base URL</a>.
15351535

1536-
<li><p>Let <var>origin</var> be the processing instruction's <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node-document" title="concept-node-document">node document</a>'s
1536+
<li><p>Let <var>origin</var> be <var>node</var>'s <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node-document" title="concept-node-document">node document</a>'s
15371537
<a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#origin">origin</a>.
15381538

15391539
<li><p>Let <var>parsed URL</var> be the return value of invoking the <a class="external" data-anolis-spec="url" href="http://url.spec.whatwg.org/#concept-url-parser" title="concept-url-parser">URL parser</a> with the
@@ -1552,7 +1552,7 @@ <h4 id="requirements-on-user-agents-implementing-the-xml-stylesheet-processing-i
15521552

15531553
<li><p>If <var>response</var> is a <a class="external" data-anolis-spec="fetch" href="http://fetch.spec.whatwg.org/#concept-network-error" title="concept-network-error">network error</a>, terminate these steps.
15541554

1555-
<li><p>If the processing instruction's <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node-document" title="concept-node-document">node document</a> is
1555+
<li><p>If <var>node</var>'s <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node-document" title="concept-node-document">node document</a> is
15561556
in <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, <var>response</var> is
15571557
<a class="external" data-anolis-spec="fetch" href="http://fetch.spec.whatwg.org/#cors-same-origin">CORS-same-origin</a> and the <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/fetching-resources.html#content-type">Content-Type metadata</a> of <var>response</var> is not a
15581558
<a href="#supported-styling-language">supported styling language</a> change the <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/fetching-resources.html#content-type">Content-Type metadata</a> of <var>response</var> to
@@ -1568,11 +1568,11 @@ <h4 id="requirements-on-user-agents-implementing-the-xml-stylesheet-processing-i
15681568
<dt><a href="#concept-css-style-sheet-location" title="concept-css-style-sheet-location">location</a></dt>
15691569
<dd><p>The result of invoking the <a class="external" data-anolis-spec="url" href="http://url.spec.whatwg.org/#concept-url-serializer" title="concept-url-serializer">URL serializer</a> with <var>parsed URL</var>.</dd>
15701570

1571-
<dt><a href="#concept-css-style-sheet-parent" title="concept-css-style-sheet-parent">parent</a></dt>
1571+
<dt><a href="#concept-css-style-sheet-parent-css-style-sheet" title="concept-css-style-sheet-parent-css-style-sheet">parent CSS style sheet</a></dt>
15721572
<dd><p>null.</dd>
15731573

15741574
<dt><a href="#concept-css-style-sheet-owner-node" title="concept-css-style-sheet-owner-node">owner node</a></dt>
1575-
<dd><p>The processing instruction.</dd>
1575+
<dd><p><var>node</var>.</dd>
15761576

15771577
<dt><a href="#concept-css-style-sheet-owner-css-rule" title="concept-css-style-sheet-owner-css-rule">owner CSS rule</a></dt>
15781578
<dd><p>null.</dd>
@@ -1642,11 +1642,11 @@ <h4 id="requirements-on-user-agents-implementing-the-http-link-header"><span cla
16421642

16431643
<li><p>If <var>response</var> is a <a class="external" data-anolis-spec="fetch" href="http://fetch.spec.whatwg.org/#concept-network-error" title="concept-network-error">network error</a>, terminate these steps.
16441644

1645-
<li><p>If the processing instruction's <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node-document" title="concept-node-document">node document</a> is
1645+
<li><p>If the document is
16461646
in <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, <var>response</var> is
16471647
<a class="external" data-anolis-spec="fetch" href="http://fetch.spec.whatwg.org/#cors-same-origin">CORS-same-origin</a> and the <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/fetching-resources.html#content-type">Content-Type metadata</a> of <var>response</var> is not a
16481648
<a href="#supported-styling-language">supported styling language</a> change the <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/fetching-resources.html#content-type">Content-Type metadata</a> of <var>response</var> to
1649-
<code title="">text/css</code>.
1649+
<code title="">text/css</code>. <span class="issue" title="">What if the HTML parser hasn't decided on quirks/non-quirks yet?</span>
16501650

16511651
<li><p>If <var>response</var> is not in a
16521652
<a href="#supported-styling-language">supported styling language</a> terminate these steps.</li>
@@ -1661,7 +1661,7 @@ <h4 id="requirements-on-user-agents-implementing-the-http-link-header"><span cla
16611661
<dt><a href="#concept-css-style-sheet-owner-node" title="concept-css-style-sheet-owner-node">owner node</a></dt>
16621662
<dd><p>null.</dd>
16631663

1664-
<dt><a href="#concept-css-style-sheet-parent" title="concept-css-style-sheet-parent">parent</a></dt>
1664+
<dt><a href="#concept-css-style-sheet-parent-css-style-sheet" title="concept-css-style-sheet-parent-css-style-sheet">parent CSS style sheet</a></dt>
16651665
<dd><p>null.</dd>
16661666

16671667
<dt><a href="#concept-css-style-sheet-owner-css-rule" title="concept-css-style-sheet-owner-css-rule">owner CSS rule</a></dt>

cssom/Overview.src.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ <h3>CSS Style Sheets</h3>
748748
<span>CSS style sheet</span> or null if the <span>CSS style sheet</span> was
749749
embedded. Does not change during the lifetime of the <span>CSS style sheet</span>.</p></dd>
750750

751-
<dt><dfn title=concept-css-style-sheet-parent>parent</dfn></dt>
751+
<dt><dfn title=concept-css-style-sheet-parent-css-style-sheet>parent CSS style sheet</dfn></dt>
752752
<dd><p>Specified when created. The <span>CSS style sheet</span> that is the parent of the
753753
<span>CSS style sheet</span> or null if there is no associated parent.</p></dd>
754754

@@ -757,7 +757,7 @@ <h3>CSS Style Sheets</h3>
757757
null if there is no associated DOM node.</p></dd>
758758

759759
<dt><dfn title=concept-css-style-sheet-owner-css-rule>owner CSS rule</dfn></dt>
760-
<dd><p>Specified when created. The <span>CSS rule</span> in the <span title=concept-css-style-sheet-parent>parent</span>
760+
<dd><p>Specified when created. The <span>CSS rule</span> in the <span title=concept-css-style-sheet-parent-css-style-sheet>parent CSS style sheet</span>
761761
that caused the inclusion of the <span>CSS style sheet</span> or null if
762762
there is no associated rule.</p></dd>
763763

@@ -853,7 +853,7 @@ <h4>The <code title>StyleSheet</code> Interface</h4>
853853
node</span>.</p>
854854

855855
<p>The <dfn title=dom-StyleSheet-parentStyleSheet><code>parentStyleSheet</code></dfn> attribute must return the
856-
<span title=concept-css-style-sheet-parent>parent</span>.</p>
856+
<span title=concept-css-style-sheet-parent-css-style-sheet>parent CSS style sheet</span>.</p>
857857

858858
<p>The <dfn title=dom-StyleSheet-title><code>title</code></dfn> attribute must return the <span title=concept-css-style-sheet-title>title</span> or null if
859859
<span title=concept-css-style-sheet-title>title</span> is the empty string.</p>
@@ -1453,10 +1453,10 @@ <h4>Requirements on User Agents Implementing the xml-stylesheet processing instr
14531453
<li><p>Let <var>input URL</var> be the value specified by the
14541454
<code title>href</code> <span data-anolis-spec=xmlss>pseudo-attribute</span>.
14551455

1456-
<li><p>Let <var>base URL</var> be the processing instruction's <span data-anolis-spec=dom title=concept-node-document>node document</span>'s
1456+
<li><p>Let <var>base URL</var> be <var>node</var>'s <span data-anolis-spec=dom title=concept-node-document>node document</span>'s
14571457
<span data-anolis-spec=html>document base URL</span>.
14581458

1459-
<li><p>Let <var>origin</var> be the processing instruction's <span data-anolis-spec=dom title=concept-node-document>node document</span>'s
1459+
<li><p>Let <var>origin</var> be <var>node</var>'s <span data-anolis-spec=dom title=concept-node-document>node document</span>'s
14601460
<span data-anolis-spec=html>origin</span>.
14611461

14621462
<li><p>Let <var>parsed URL</var> be the return value of invoking the <span data-anolis-spec=url title=concept-url-parser>URL parser</span> with the
@@ -1475,7 +1475,7 @@ <h4>Requirements on User Agents Implementing the xml-stylesheet processing instr
14751475

14761476
<li><p>If <var>response</var> is a <span data-anolis-spec=fetch title=concept-network-error>network error</span>, terminate these steps.
14771477

1478-
<li><p>If the processing instruction's <span data-anolis-spec=dom title=concept-node-document>node document</span> is
1478+
<li><p>If <var>node</var>'s <span data-anolis-spec=dom title=concept-node-document>node document</span> is
14791479
in <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, <var>response</var> is
14801480
<span data-anolis-spec=fetch>CORS-same-origin</span> and the <span data-anolis-spec=html>Content-Type metadata</span> of <var>response</var> is not a
14811481
<span>supported styling language</span> change the <span data-anolis-spec=html>Content-Type metadata</span> of <var>response</var> to
@@ -1491,11 +1491,11 @@ <h4>Requirements on User Agents Implementing the xml-stylesheet processing instr
14911491
<dt><span title=concept-css-style-sheet-location>location</span></dt>
14921492
<dd><p>The result of invoking the <span data-anolis-spec=url title=concept-url-serializer>URL serializer</span> with <var>parsed URL</var>.</p></dd>
14931493

1494-
<dt><span title=concept-css-style-sheet-parent>parent</span></dt>
1494+
<dt><span title=concept-css-style-sheet-parent-css-style-sheet>parent CSS style sheet</span></dt>
14951495
<dd><p>null.</p></dd>
14961496

14971497
<dt><span title=concept-css-style-sheet-owner-node>owner node</span></dt>
1498-
<dd><p>The processing instruction.</p></dd>
1498+
<dd><p><var>node</var>.</p></dd>
14991499

15001500
<dt><span title=concept-css-style-sheet-owner-css-rule>owner CSS rule</span></dt>
15011501
<dd><p>null.</p></dd>
@@ -1565,11 +1565,11 @@ <h4>Requirements on User Agents Implementing the HTTP
15651565

15661566
<li><p>If <var>response</var> is a <span data-anolis-spec=fetch title=concept-network-error>network error</span>, terminate these steps.
15671567

1568-
<li><p>If the processing instruction's <span data-anolis-spec=dom title=concept-node-document>node document</span> is
1568+
<li><p>If the document is
15691569
in <span data-anolis-spec=dom title=concept-document-quirks>quirks mode</span>, <var>response</var> is
15701570
<span data-anolis-spec=fetch>CORS-same-origin</span> and the <span data-anolis-spec=html>Content-Type metadata</span> of <var>response</var> is not a
15711571
<span>supported styling language</span> change the <span data-anolis-spec=html>Content-Type metadata</span> of <var>response</var> to
1572-
<code title>text/css</code>.
1572+
<code title>text/css</code>. <span class=issue title>What if the HTML parser hasn't decided on quirks/non-quirks yet?</span>
15731573

15741574
<li><p>If <var>response</var> is not in a
15751575
<span>supported styling language</span> terminate these steps.</p></li>
@@ -1584,7 +1584,7 @@ <h4>Requirements on User Agents Implementing the HTTP
15841584
<dt><span title=concept-css-style-sheet-owner-node>owner node</span></dt>
15851585
<dd><p>null.</p></dd>
15861586

1587-
<dt><span title=concept-css-style-sheet-parent>parent</span></dt>
1587+
<dt><span title=concept-css-style-sheet-parent-css-style-sheet>parent CSS style sheet</span></dt>
15881588
<dd><p>null.</p></dd>
15891589

15901590
<dt><span title=concept-css-style-sheet-owner-css-rule>owner CSS rule</span></dt>

0 commit comments

Comments
 (0)