Skip to content

Commit 811cdc9

Browse files
committed
Add issue about & requiring either escaping or CDATA in XML.
1 parent 5a279fd commit 811cdc9

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

css3-hierarchies/Overview.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ <h2 id=nesting-selector><span class=secno>2. </span> The &amp; Selector</h2>
281281
nesting selector. The nesting selector represents the elements matched by
282282
the parent rule set's selector list.
283283

284+
<p class=issue>Introducing the &lsquo;<code class=css>&amp;</code>&rsquo;
285+
character will cause issues with CSS embedded directly in XML, as it's the
286+
first character used in CSS syntax that either requires escaping or using
287+
CDATA. Do we need to change this?
288+
284289
<div class=example>
285290
<p>The following example using Hierarchies:
286291

css3-hierarchies/Overview.src.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ <h2 id="nesting-selector">
162162

163163
<p>This specification provides a mechanism that allows for the nesting of style rules within other style rules. A nested style rule can used anywhere that a declaration can be used.</p>
164164

165-
<p>In order to accomplish nesting, this specification defines a new simple selector called the nesting selector, represented in selectors by the '&amp;' character. All complex selectors in the selector lists of nested rule sets must start with the nesting selector. The nesting selector represents the elements matched by the parent rule set's selector list.
165+
<p>In order to accomplish nesting, this specification defines a new simple selector called the nesting selector, represented in selectors by the '&amp;' character. All complex selectors in the selector lists of nested rule sets must start with the nesting selector. The nesting selector represents the elements matched by the parent rule set's selector list.</p>
166+
167+
<p class='issue'>Introducing the ''&amp;'' character will cause issues with CSS embedded directly in XML, as it's the first character used in CSS syntax that either requires escaping or using CDATA. Do we need to change this?</p>
166168

167169
<div class='example'>
168170
<p>The following example using Hierarchies:

0 commit comments

Comments
 (0)