| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 ``<style>`` | 166 ``<style>`` |
| 167 - Adds the contents to the document's styles. | 167 - Adds the contents to the document's styles. |
| 168 | 168 |
| 169 ``<content>`` | 169 ``<content>`` |
| 170 ``<content select="...">`` | 170 ``<content select="...">`` |
| 171 - In a shadow tree, acts as an insertion point for distributed nodes. | 171 - In a shadow tree, acts as an insertion point for distributed nodes. |
| 172 The select="" attribute gives the selector to use to pick the nodes | 172 The select="" attribute gives the selector to use to pick the nodes |
| 173 to place in this insertion point; it defaults to everything. | 173 to place in this insertion point; it defaults to everything. |
| 174 | 174 |
| 175 ``<shadow>`` | |
| 176 - In a shadow tree, acts as an insertion point for older shadow trees. | |
| 177 | |
| 178 ``<img src="foo.bin">`` | 175 ``<img src="foo.bin">`` |
| 179 - Sky fetches the bits for foo.bin, looks for a decoder for those | 176 - Sky fetches the bits for foo.bin, looks for a decoder for those |
| 180 bits, and renders the bits that the decoder returns. | 177 bits, and renders the bits that the decoder returns. |
| 181 | 178 |
| 182 ``<iframe src="foo.bin">`` | 179 ``<iframe src="foo.bin">`` |
| 183 - Sky tells mojo to open an application for foo.bin, and hands that | 180 - Sky tells mojo to open an application for foo.bin, and hands that |
| 184 application a view so that the application can render appropriately. | 181 application a view so that the application can render appropriately. |
| 185 | 182 |
| 186 ``<t>`` | 183 ``<t>`` |
| 187 - Within a ``<t>`` section, whitespace is not trimmed from the start and | 184 - Within a ``<t>`` section, whitespace is not trimmed from the start and |
| (...skipping 16 matching lines...) Expand all Loading... |
| 204 | 201 |
| 205 The following attributes are available on all elements: | 202 The following attributes are available on all elements: |
| 206 | 203 |
| 207 * ``id=""`` (any value) | 204 * ``id=""`` (any value) |
| 208 * ``class=""`` (any value, space-separated) | 205 * ``class=""`` (any value, space-separated) |
| 209 * ``style=""`` (declaration part of a Sky style rule) | 206 * ``style=""`` (declaration part of a Sky style rule) |
| 210 * ``lang=""`` (language code) | 207 * ``lang=""`` (language code) |
| 211 * ``dir=""`` (ltr or rtl only) | 208 * ``dir=""`` (ltr or rtl only) |
| 212 * ``contenteditable=""`` (subject to future developments) | 209 * ``contenteditable=""`` (subject to future developments) |
| 213 * ``tabindex=""`` (subject to future developments) | 210 * ``tabindex=""`` (subject to future developments) |
| OLD | NEW |