| OLD | NEW |
| 1 Sky Markup: Syntax | 1 Sky Markup: Syntax |
| 2 ================== | 2 ================== |
| 3 | 3 |
| 4 A Sky file must consist of the following components: | 4 A Sky file must consist of the following components: |
| 5 | 5 |
| 6 1. If the file is intended to be a top-level Sky application, the | 6 1. If the file is intended to be a top-level Sky application, the |
| 7 string "```#!mojo mojo:sky```" followed by a U+0020, U+000A or | 7 string "```#!mojo mojo:sky```" followed by a U+0020, U+000A or |
| 8 U+000D character. | 8 U+000D character. |
| 9 | 9 |
| 10 If the file is intended to be a module, then the string "SKY", a | 10 If the file is intended to be a module, then the string "SKY", a |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 An element consists of the following: | 93 An element consists of the following: |
| 94 | 94 |
| 95 1. ```<``` | 95 1. ```<``` |
| 96 2. Tag name: A sequence of characters other than ```/```, ```>```, | 96 2. Tag name: A sequence of characters other than ```/```, ```>```, |
| 97 U+0020, U+000A, U+000D (whitespace). | 97 U+0020, U+000A, U+000D (whitespace). |
| 98 3. Zero or more of the following: | 98 3. Zero or more of the following: |
| 99 1. One or more U+0020, U+000A, U+000D (whitespace). | 99 1. One or more U+0020, U+000A, U+000D (whitespace). |
| 100 2. Attribute name: A sequence of characters other than ```/```, | 100 2. Attribute name: A sequence of characters other than ```/```, |
| 101 ```=```, ```>```, U+0020, U+000A, U+000D (whitespace). | 101 ```=```, ```>```, U+0020, U+000A, U+000D (whitespace). |
| 102 3. Optionally: | 102 3. Optionally: |
| 103 1. ```=``` | 103 1. Zero or more U+0020, U+000A, U+000D (whitespace) characters. |
| 104 2. Attribute value: Either: | 104 2. ```=``` |
| 105 3. Zero or more U+0020, U+000A, U+000D (whitespace) characters. |
| 106 4. Attribute value: Either: |
| 105 - ```'``` followed by attribute text other than ```'``` | 107 - ```'``` followed by attribute text other than ```'``` |
| 106 followed by a terminating ```'```. | 108 followed by a terminating ```'```. |
| 107 - ```"``` followed by attribute text other than ```'``` | 109 - ```"``` followed by attribute text other than ```'``` |
| 108 followed by a terminating ```"```. | 110 followed by a terminating ```"```. |
| 109 - attribute text other than ```/```, ```>```, | 111 - attribute text other than ```/```, ```>```, |
| 110 U+0020, U+000A, U+000D (whitespace). | 112 U+0020, U+000A, U+000D (whitespace). |
| 111 "Attribute text" is escapes or any unicode characters other | 113 "Attribute text" is escapes or any unicode characters other |
| 112 than U+0000. | 114 than U+0000. |
| 113 4. Either: | 115 4. Either: |
| 114 - For a void element: | 116 - For a void element: |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 The following attributes are available on all elements: | 206 The following attributes are available on all elements: |
| 205 | 207 |
| 206 id="" (any value) | 208 id="" (any value) |
| 207 class="" (any value, space-separated) | 209 class="" (any value, space-separated) |
| 208 style="" (declaration part of a Sky style rule) | 210 style="" (declaration part of a Sky style rule) |
| 209 lang="" (language code) | 211 lang="" (language code) |
| 210 dir="" (ltr or rtl only) | 212 dir="" (ltr or rtl only) |
| 211 | 213 |
| 212 contenteditable="" (subject to future developments) | 214 contenteditable="" (subject to future developments) |
| 213 tabindex="" (subject to future developments) | 215 tabindex="" (subject to future developments) |
| OLD | NEW |