Skip to content

Commit 08a1aa7

Browse files
author
Simon Pieters
committed
[cssom] Some fixes for serializing selectors. http://www.w3.org/mid/20130608060851.GA3634@crum.dbaron.org
1 parent 9d44fe1 commit 08a1aa7

2 files changed

Lines changed: 5 additions & 17 deletions

File tree

cssom/Overview.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,7 @@ <h3 id="serializing-selectors"><span class="secno">5.2 </span>Serializing Select
678678

679679
<li><p>Otherwise, for each <a href="#simple-selector">simple selector</a> in the
680680
<a href="#sequence-of-simple-selectors">sequence of simple selectors</a> that is not a
681-
universal selector of which the <a href="#namespace-prefix">namespace prefix</a> maps to
682-
the null namespace (not in a namespace) or of which the
681+
universal selector of which the
683682
<a href="#namespace-prefix">namespace prefix</a> maps to a namespace that is not the
684683
<a href="#default-namespace">default namespace</a>
685684
<a href="#serialize-a-simple-selector" title="serialize a simple selector">serialize</a> the
@@ -696,7 +695,7 @@ <h3 id="serializing-selectors"><span class="secno">5.2 </span>Serializing Select
696695

697696
<li><p>If this is the last part of the chain of the selector and there is
698697
a pseudo-element, append "<code title="">::</code>" followed by the name of the
699-
pseudo-class, to <var>s</var>.</li>
698+
pseudo-element, to <var>s</var>.</li>
700699
</ol>
701700

702701

@@ -743,11 +742,6 @@ <h3 id="serializing-selectors"><span class="secno">5.2 </span>Serializing Select
743742
<a href="#namespace-prefix">namespace prefix</a>, followed by a "<code title="">|</code>" (U+007C)
744743
to <var>s</var>.</li>
745744

746-
<li><p>If the <a href="#namespace-prefix">namespace prefix</a> maps to a namespace that is
747-
the null namespace (not in a namespace) append
748-
"<code title="">|</code>" (U+007C) to <var>s</var>.</li>
749-
<!-- This includes |* -->
750-
751745
<li><p>Append the <a href="#serialize-an-identifier" title="serialize an identifier">escaped</a>
752746
attribute name to <var>s</var>.</li>
753747

cssom/Overview.src.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,7 @@ <h3>Serializing Selectors</h3>
601601

602602
<li><p>Otherwise, for each <span>simple selector</span> in the
603603
<span>sequence of simple selectors</span> that is not a
604-
universal selector of which the <span>namespace prefix</span> maps to
605-
the null namespace (not in a namespace) or of which the
604+
universal selector of which the
606605
<span>namespace prefix</span> maps to a namespace that is not the
607606
<span>default namespace</span>
608607
<span title="serialize a simple selector">serialize</span> the
@@ -619,7 +618,7 @@ <h3>Serializing Selectors</h3>
619618

620619
<li><p>If this is the last part of the chain of the selector and there is
621620
a pseudo-element, append "<code title>::</code>" followed by the name of the
622-
pseudo-class, to <var>s</var>.</p></li>
621+
pseudo-element, to <var>s</var>.</p></li>
623622
</ol>
624623

625624

@@ -666,11 +665,6 @@ <h3>Serializing Selectors</h3>
666665
<span>namespace prefix</span>, followed by a "<code title>|</code>" (U+007C)
667666
to <var>s</var>.</p></li>
668667

669-
<li><p>If the <span>namespace prefix</span> maps to a namespace that is
670-
the null namespace (not in a namespace) append
671-
"<code title>|</code>" (U+007C) to <var>s</var>.</p></li>
672-
<!-- This includes |* -->
673-
674668
<li><p>Append the <span title="serialize an identifier">escaped</span>
675669
attribute name to <var>s</var>.</p></li>
676670

@@ -686,7 +680,7 @@ <h3>Serializing Selectors</h3>
686680
attribute value, to <var>s</var>.</p></li>
687681

688682
<li><p>Append "<code title>]</code>" (U+005D) to
689-
<var>s</vaR>.</p></li>
683+
<var>s</var>.</p></li>
690684
</ol>
691685
</dd>
692686

0 commit comments

Comments
 (0)