8000 fix <code> and remove duplicate CSS2.1 reference · simonwuelker/csswg-drafts@f44133b · GitHub
Skip to content

Commit f44133b

Browse files
committed
fix <code> and remove duplicate CSS2.1 reference
1 parent e9d9c22 commit f44133b

2 files changed

Lines changed: 34 additions & 44 deletions

File tree

css3-namespace/Overview.html

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
<h1 id=css-namespaces>CSS Namespaces Module</h1>
1717

18-
<h2 class="no-num no-toc" id=longstatus>Editor's Draft 2 April 2008</h2>
18+
<h2 class="no-num no-toc" id=longstatus>Editor's Draft 16 April 2008</h2>
1919

2020
<dl>
2121
<dt>This version:</dt>
22-
<!-- <dd><a href="http://www.w3.org/TR/2008/WD-css3-namespace-20080402/">http://www.w3.org/TR/2008/WD-css3-namespace-20080402/</a></dd> -->
22+
<!-- <dd><a href="http://www.w3.org/TR/2008/WD-css3-namespace-20080416/">http://www.w3.org/TR/2008/WD-css3-namespace-20080416/</a></dd> -->
2323

2424
<dd><a
2525
href="http://dev.w3.org/csswg/css3-namespace/">http://dev.w3.org/csswg/css3-namespace/</a>
@@ -176,11 +176,11 @@ <h2 id=intro><span class=secno>1. </span>Introduction</h2>
176176
<p>Note that a CSS client that does not support this module will (if it
177177
properly conforms to <a
178178
href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors">CSS's
179-
forward-compatible parsing rules</a>) ignore all @namespace rules, as
180-
well as all style rules that make use of namespace qualified names. The
181-
syntax of delimiting namespace prefixes in CSS was deliberately chosen so
182-
that these CSS clients would ignore the style rules rather than possibly
183-
match them incorrectly.</p>
179+
forward-compatible parsing rules</a>) ignore all <code>@namespace</code>
180+
rules, as well as all style rules that make use of namespace qualified
181+
names. The syntax of delimiting namespace prefixes in CSS was
182+
deliberately chosen so that these CSS clients would ignore the style
183+
rules rather than possibly match them incorrectly.</p>
184184
</div>
185185

186186
<div>
@@ -244,7 +244,7 @@ <h3 id=terminology><span class=secno>2.1 </span>Terminology</h3>
244244
<h2 id=declaration><span class=secno>3. </span>Declaring namespaces: the
245245
<code>@namespace</code> rule</h2>
246246

247-
<p>The @namespace <a
247+
<p>The <code>@namespace</code> <a
248248
href="http://www.w3.org/TR/CSS21/syndata.html#at-rules">at-rule</a>
249249
declares a namespace prefix and associates it with a given namespace name
250250
(a string). This namespace prefix can then be used in namespace-qualified
@@ -294,10 +294,10 @@ <h2 id=declaration><span class=secno>3. </span>Declaring namespaces: the
294294

295295
<h3 id=syntax><span class=secno>3.1 </span>Syntax</h3>
296296

297-
<p>The syntax for the @namespace rule is as follows (using the notation
298-
from the <a href="http://www.w3.org/TR/CSS21/grammar.html">Grammar
299-
appendix of CSS 2.1</a> <a href="#CSS21"
300-
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>):</p>
297+
<p>The syntax for the <code>@namespace</code> rule is as follows (using
298+
the notation from the <a
299+
href="http://www.w3.org/TR/CSS21/grammar.html">Grammar appendix of CSS
300+
2.1</a> <a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>):</p>
301301

302302
<pre><!--
303303
-->namespace
@@ -312,9 +312,9 @@ <h3 id=syntax><span class=secno>3.1 </span>Syntax</h3>
312312

313313
<pre>@{N}{A}{M}{E}{S}{P}{A}{C}{E} {return NAMESPACE_SYM;}</pre>
314314

315-
<p>Any @namespace rules must follow all @charset and @import rules and
316-
precede all other non-ignored at-rules and rule sets in a style sheet.
317-
For CSS syntax this adds <code>[ namespace [S|CDO|CDC]* ]*</code>
315+
<p>Any <code>@namespace</code> rules must follow all @charset and @import
316+
rules and precede all other non-ignored at-rules and rule sets in a style
317+
sheet. For CSS syntax this adds <code>[ namespace [S|CDO|CDC]* ]*</code>
318318
immediately after <code>[ import [S|CDO|CDC]* ]*</code> in the
319319
<code>stylesheet</code> grammar.</p>
320320

@@ -332,9 +332,9 @@ <h3 id=syntax><span class=secno>3.1 </span>Syntax</h3>
332332
<h3 id=scope><span class=secno>3.2 </span>Scope</h3>
333333

334334
<p>The namespace prefix is declared only within the style sheet in which
335-
its @namespace rule appears. It is not declared in any style sheets
336-
importing or imported by that style sheet, nor in any other style sheets
337-
applying to the document.</p>
335+
its <code>@namespace</code> rule appears. It is not declared in any style
336+
sheets importing or imported by that style sheet, nor in any other style
337+
sheets applying to the document.</p>
338338

339339
<h3 id=prefixes><span class=secno>3.3 </span>Declaring Prefixes</h3>
340340

@@ -447,7 +447,7 @@ <h2 id=css-qnames><span class=secno>4. </span>CSS Qualified Names</h2>
447447
<p>For example, the Selectors module <a href="#SELECT"
448448
rel=biblioentry>[SELECT]<!--{{SELECT}}--></a> defines a type selector
449449
with an undeclared namespace prefix to be an invalid selector, and CSS
450-
<a href="#CSS21" rel=biblioentry>[CSS21]<!--{{CSS21}}--></a> requires
450+
<a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> requires
451451
rule sets with an invalid selector to be completely ignored.</p>
452452
</div>
453453

@@ -515,16 +515,6 @@ <h3 class=no-num id=informative-references>Informative references</h3>
515515
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
516516
<!---->
517517

518-
<dt id=CSS21>[CSS21]
519-
520-
<dd>Bert Bos; et al. <a
521-
href="http://www.w3.org/TR/2007/CR-CSS21-20070719"><cite>Cascading Style
522-
Sheets, level 2 revision 1.</cite></a> 19 July 2007. W3C Candidate
523-
Recommendation. (Work in progress.) URL: <a
524-
href="http://www.w3.org/TR/2007/CR-CSS21-20070719">http://www.w3.org/TR/2007/CR-CSS21-20070719</a>
525-
</dd>
526-
<!---->
527-
528518
<dt id=SELECT>[SELECT]
529519

530520
<dd>Daniel Glazman; Tantek &#199;elik; Ian Hickson (eds). <a

css3-namespace/Overview.src.html

Lines changed: 15 additions & 15 deletions
< 1EF0 td data-grid-cell-id="diff-95575fa02208e39301aef102e25ec2e00b84d4c529a447df916827a0f89b9489-148-148-2" data-line-anchor="diff-95575fa02208e39301aef102e25ec2e00b84d4c529a447df916827a0f89b9489R148" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">
names such as the <a href="#css-qnames">CSS qualified names</a> defined below.</p>
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ <h2 id="intro">Introduction</h2>
7272
It also defines a syntax for using those prefixes to represent
7373
namespace-qualified names. It does not define where such names are
7474
valid or what they mean: that depends on their context and is defined
75-
by a host language, such as Selectors ([[SELECT]]), that references the syntax
76-
defined in the CSS Namespaces module.
75+
by a host language, such as Selectors ([[SELECT]]), that references the
76+
syntax defined in the CSS Namespaces module.
7777

7878
<p>Note that a CSS client that does not support this module will (if it
7979
properly conforms to
8080
<a href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors">CSS's
8181
forward-compatible parsing rules</a>)
82-
ignore all @namespace rules, as well as all style rules that make use
83-
of namespace qualified names. The syntax of delimiting namespace
82+
ignore all <code>@namespace</code> rules, as well as all style rules that
83+
make use of namespace qualified names. The syntax of delimiting namespace
8484
prefixes in CSS was deliberately chosen so that these CSS clients would
8585
ignore the style rules rather than possibly match them incorrectly.</p>
8686
</div>
@@ -142,7 +142,7 @@ <h3 id="terminology">Terminology</h3>
142142
<div>
143143
<h2 id="declaration">Declaring namespaces: the <code>@namespace</code> rule</h2>
144144

145-
<p>The @namespace <a href="http://www.w3.org/TR/CSS21/syndata.html#at-rules">at-rule</a>
145+
<p>The <code>@namespace</code> <a href="http://www.w3.org/TR/CSS21/syndata.html#at-rules">at-rule</a>
146146
declares a namespace prefix and associates it with a given namespace name
147147
(a string). This namespace prefix can then be used in namespace-qualified
148148
@@ -185,9 +185,9 @@ <h2 id="declaration">Declaring namespaces: the <code>@namespace</code> rule</h2>
185185
</div>
186186

187187
<h3 id="syntax">Syntax</h3>
188-
<p>The syntax for the @namespace rule is as follows (using the notation from
189-
the <a href="http://www.w3.org/TR/CSS21/grammar.html">Grammar appendix of
190-
CSS 2.1</a> [[!CSS21]]):</p>
188+
<p>The syntax for the <code>@namespace</code> rule is as follows (using the
189+
notation from the <a href="http://www.w3.org/TR/CSS21/grammar.html">Grammar
190+
appendix of CSS 2.1</a> [[!CSS21]]):</p>
191191

192192
<pre><!--
193193
-->namespace
@@ -202,9 +202,9 @@ <h3 id="syntax">Syntax</h3>
202202

203203
<pre>@{N}{A}{M}{E}{S}{P}{A}{C}{E} {return NAMESPACE_SYM;}</pre>
204204

205-
<p>Any @namespace rules must follow all @charset and @import rules and precede
206-
all other non-ignored at-rules and rule sets in a style sheet.
207-
For CSS syntax this adds <code>[ namespace [S|CDO|CDC]* ]*</code>
205+
<p>Any <code>@namespace</code> rules must follow all @charset and @import
206+
rules and precede all other non-ignored at-rules and rule sets in a style
207+
sheet. For CSS syntax this adds <code>[ namespace [S|CDO|CDC]* ]*</code>
208208
immediately after <code>[ import [S|CDO|CDC]* ]*</code> in the
209209
<code>stylesheet</code> grammar.</p>
210210

@@ -221,9 +221,9 @@ <h3 id="syntax">Syntax</h3>
221221
<h3 id="scope">Scope</h3>
222222

223223
<p>The namespace prefix is declared only within the style sheet in which its
224-
@namespace rule appears. It is not declared in any style sheets importing or
225-
imported by that style sheet, nor in any other style sheets applying to the
226-
document.</p>
224+
<code>@namespace</code> rule appears. It is not declared in any style sheets
225+
importing or imported by that style sheet, nor in any other style sheets
226+
applying to the document.</p>
227227

228228
<h3 id="prefixes">Declaring Prefixes</h3>
229229

@@ -321,7 +321,7 @@ <h2 id="css-qnames">CSS Qualified Names</h2>
321321
<div class="example">
322322
<p>For example, the Selectors module [[SELECT]] defines a type selector with
323323
an undeclared namespace prefix to be an invalid selector, and CSS
324-< 1EF0 div class="diff-text-inner"> [[CSS21]] requires rule sets with an invalid selector to be completely
324+
[[!CSS21]] requires rule sets with an invalid selector to be completely
325325
ignored.</p>
326326
</div>
327327

0 commit comments

Comments
 (0)