You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><ahref="#requirements-on-specifications"><spanclass="secno">6.3.2 </span>Requirements on specifications</a></li>
162
-
<li><ahref="#requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction"><spanclass="secno">6.3.3 </span>Requirements on User Agents Implementing the <codetitle="">xml-stylesheet</code> processing instruction</a></li>
162
+
<li><ahref="#requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction"><spanclass="secno">6.3.3 </span>Requirements on User Agents Implementing the xml-stylesheet processing instruction</a></li>
163
163
<li><ahref="#requirements-on-user-agents-implementing-the-http-link-header"><spanclass="secno">6.3.4 </span>Requirements on User Agents Implementing the HTTP
@@ -1059,6 +1059,18 @@ <h3 id="css-style-sheet-collections"><span class="secno">6.2 </span>CSS Style Sh
1059
1059
<li><p>Set the <ahref="#concept-css-style-sheet-disabled-flag" title="concept-css-style-sheet-disabled-flag">disabled flag</a>.</li>
1060
1060
</ol>
1061
1061
1062
+
<p>To <dfnid="remove-a-css-style-sheet">remove a CSS style sheet</dfn>, run these steps:</p>
1063
+
1064
+
<ol>
1065
+
<li><p>Remove the <ahref="#css-style-sheet">CSS style sheet</a> from the list of <ahref="#document-css-style-sheets">document CSS style sheets</a>.
1066
+
1067
+
<li><p>Set the <ahref="#css-style-sheet">CSS style sheet</a>'s <ahref="#concept-css-style-sheet-owner-node" title="concept-css-style-sheet-owner-node">owner node</a> to null.
1068
+
1069
+
<!-- "associated CSS style sheet" is defined in terms of owner node, so we don't need to set it to null explicitly -->
1070
+
1071
+
<!-- XXX does anything need to happen wrt alternate style sheets? what if the last style sheet with the preferred style sheet set name is removed? -->
1072
+
</ol>
1073
+
1062
1074
<p>A <dfnid="persistent-css-style-sheet">persistent CSS style sheet</dfn> is a
1063
1075
<ahref="#css-style-sheet">CSS style sheet</a> from the <ahref="#document-css-style-sheets">document CSS style sheets</a>
1064
1076
whose <ahref="#concept-css-style-sheet-title" title="concept-css-style-sheet-title">title</a> is the empty string and whose
<h4id="requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction"><spanclass="secno">6.3.3 </span>Requirements on User Agents Implementing the <codetitle="">xml-stylesheet</code> processing instruction</h4>
1491
+
<h4id="requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction"><spanclass="secno">6.3.3 </span>Requirements on User Agents Implementing the xml-stylesheet processing instruction</h4>
<aclass="external" data-anolis-spec="xml" href="http://www.w3.org/TR/xml/#dt-doctype">document type declaration</a> and has an
1489
-
<codetitle="">href</code>
1490
-
<aclass="external" data-anolis-spec="xmlss" href="http://www.w3.org/TR/xml-stylesheet/#dt-pseudo-attribute">pseudo-attribute</a> these steps must
1491
-
(unless otherwise stated) be run:</p>
1497
+
<p>The <dfnid="prolog">prolog</dfn> refers to <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node" title="concept-node">nodes</a> that are children of the
1498
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document"title="concept-document">document</a> and are not <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-tree-following" title="concept-tree-following">following</a> the
1499
+
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#element">Element</a></code> child of the<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document" title="concept-document">document</a>, if any.
1500
+
1501
+
<p>When a <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#processinginstruction">ProcessingInstruction</a></code><aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-node" title="concept-node">node</a><var>node</var> is inserted to a
1502
+
document, removed from a document, becomes part of the <ahref="#prolog">prolog</a>, is no longer part of the <ahref="#prolog">prolog</a>, or has its
1503
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-cd-data" title="concept-cd-data">data</a> changed, these steps must be run:
1492
1504
1493
1505
<ol>
1506
+
<li><p>If an instance of this algorithm is currently running for <var>node</var>, abort that instance, and stop the associated
1507
+
<aclass="external" data-anolis-spec="fetch" href="http://fetch.spec.whatwg.org/#concept-fetch" title="concept-fetch">fetching</a> if applicable.
1508
+
1509
+
<li><p>If <var>node</var> has an <ahref="#associated-css-style-sheet">associated CSS style sheet</a>, <ahref="#remove-a-css-style-sheet" title="remove a CSS style sheet">remove</a> it.
1510
+
1511
+
<li><p>If <var>node</var> is not an <aclass="external" data-anolis-spec="xmlss" href="http://www.w3.org/TR/xml-stylesheet/#dt-xml-stylesheet">xml-stylesheet processing instruction</a>, terminate these steps.
1512
+
1513
+
<li><p>If <var>node</var> is part of the <aclass="external" data-anolis-spec="xml" href="http://www.w3.org/TR/xml/#dt-doctype">document type declaration</a>, terminate these steps.
1514
+
1515
+
<li><p>If <var>node</var> does not have an <codetitle="">href</code><aclass="external" data-anolis-spec="xmlss" href="http://www.w3.org/TR/xml-stylesheet/#dt-pseudo-attribute">pseudo-attribute</a>, terminate these steps.
1516
+
1494
1517
<li><p>Let <var>title</var> be the value of the
1495
1518
<codetitle="">title</code><aclass="external" data-anolis-spec="xmlss" href="http://www.w3.org/TR/xml-stylesheet/#dt-pseudo-attribute">pseudo-attribute</a> or the empty string if the
1496
1519
<codetitle="">title</code><aclass="external" data-anolis-spec="xmlss" href="http://www.w3.org/TR/xml-stylesheet/#dt-pseudo-attribute">pseudo-attribute</a> is not specified.</li>
<h4id="requirements-on-user-agents-implementing-the-http-link-header"><spanclass="secno">6.3.4 </span>Requirements on User Agents Implementing the HTTP
<spandata-anolis-spec=xml>document type declaration</span> and has an
1412
-
<codetitle>href</code>
1413
-
<spandata-anolis-spec=xmlss>pseudo-attribute</span> these steps must
1414
-
(unless otherwise stated) be run:</p>
1420
+
<p>The <dfn>prolog</dfn> refers to <spandata-anolis-spec=domtitle=concept-node>nodes</span> that are children of the
1421
+
<spandata-anolis-spec=domtitle=concept-document>document</span> and are not <spandata-anolis-spec=domtitle=concept-tree-following>following</span> the
1422
+
<codedata-anolis-spec=dom>Element</code> child of the<spandata-anolis-spec=domtitle=concept-document>document</span>, if any.
1423
+
1424
+
<p>When a <codedata-anolis-spec=dom>ProcessingInstruction</code><spandata-anolis-spec=domtitle=concept-node>node</span><var>node</var> is inserted to a
1425
+
document, removed from a document, becomes part of the <span>prolog</span>, is no longer part of the <span>prolog</span>, or has its
1426
+
<spandata-anolis-spec=domtitle=concept-cd-data>data</span> changed, these steps must be run:
1415
1427
1416
1428
<ol>
1429
+
<li><p>If an instance of this algorithm is currently running for <var>node</var>, abort that instance, and stop the associated
1430
+
<spandata-anolis-spec=fetchtitle=concept-fetch>fetching</span> if applicable.
1431
+
1432
+
<li><p>If <var>node</var> has an <span>associated CSS style sheet</span>, <spantitle="remove a CSS style sheet">remove</span> it.
1433
+
1434
+
<li><p>If <var>node</var> is not an <spandata-anolis-spec=xmlss>xml-stylesheet processing instruction</span>, terminate these steps.
1435
+
1436
+
<li><p>If <var>node</var> is part of the <spandata-anolis-spec=xml>document type declaration</span>, terminate these steps.
1437
+
1438
+
<li><p>If <var>node</var> does not have an <codetitle>href</code><spandata-anolis-spec=xmlss>pseudo-attribute</span>, terminate these steps.
1439
+
1417
1440
<li><p>Let <var>title</var> be the value of the
1418
1441
<codetitle>title</code><spandata-anolis-spec=xmlss>pseudo-attribute</span> or the empty string if the
1419
1442
<codetitle>title</code><spandata-anolis-spec=xmlss>pseudo-attribute</span> is not specified.</p></li>
@@ -1496,8 +1519,6 @@ <h4>Requirements on User Agents Implementing the <code title>xml-stylesheet</cod
1496
1519
</ol>
1497
1520
1498
1521
1499
-
1500
-
1501
1522
<h4>Requirements on User Agents Implementing the HTTP
0 commit comments