|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: syndata.src,v 2.164 2009-02-03 11:24:59 bbos Exp $ --> |
| 3 | +<!-- $Id: syndata.src,v 2.165 2009-04-15 07:24:39 bbos Exp $ --> |
4 | 4 | <head> |
5 | 5 | <title>Syntax and basic data types</title> |
6 | 6 | <meta name="editor" lang="tr" content="Tantek Çelik"> |
@@ -271,7 +271,8 @@ href="#parsing-errors">rules for handling parsing errors</a>. However, because t |
271 | 271 | </p> |
272 | 272 | <p>Second, it cancels the meaning of special CSS characters. |
273 | 273 | Except within CSS comments, any character (except a |
274 | | - hexadecimal digit) can be escaped |
| 274 | + hexadecimal digit or a linefeed, carriage return of formfeed) |
| 275 | + can be escaped |
275 | 276 | with a backslash to remove its special meaning. |
276 | 277 | For example, <samp>"\""</samp> is a string consisting of one |
277 | 278 | double quote. Style sheet preprocessors must not remove |
@@ -666,6 +667,27 @@ p { color:red; color{;color:maroon}; color:green } /* same with recovery */ |
666 | 667 | </li> |
667 | 668 |
|
668 | 669 |
|
| 670 | +<li><strong>Malformed statements.</strong> User agents must handle |
| 671 | +unexpected tokens encountered while parsing a statement by reading |
| 672 | +until the end of the statement, while observing the rules for matching |
| 673 | +pairs of (), [], {}, "", and '', and correctly handling escapes. For |
| 674 | +example, a malformed statement may contain an unexpected closing brace |
| 675 | +or at-keyword. E.g., the following lines are all ignored: |
| 676 | + |
| 677 | +<!-- An unexpected token when parsing the stylesheet production is |
| 678 | +considered to be the start of a (malformed) ruleset, which ends at |
| 679 | +the next balanced {} pair at top level. --> |
| 680 | + |
| 681 | +<pre> |
| 682 | +p @here {color: red} /* ruleset with unexpected at-keyword "@here" */ |
| 683 | +@foo @bar; /* at-rule with unexpected at-keyword "@bar" */ |
| 684 | +}} {{ - }} /* ruleset with unexpected right brace */ |
| 685 | +) ( {} ) p {color: red } /* ruleset with unexpected right parenthesis */ |
| 686 | +</pre> |
| 687 | + |
| 688 | +<!-- Note that the ") (" in the last line do not count as a balanced |
| 689 | +pair. --> |
| 690 | + |
669 | 691 | <li><strong>Invalid at-keywords.</strong> User agents must <span |
670 | 692 | class="index-inst" title="ignore"><a href="#ignore">ignore</a></span> |
671 | 693 | an invalid at-keyword together with everything following it, up to and |
|
0 commit comments