| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 | 143 |
| 144 Sky Markup: Elements | 144 Sky Markup: Elements |
| 145 ==================== | 145 ==================== |
| 146 | 146 |
| 147 The Sky language consists of very few elements, since it is expected | 147 The Sky language consists of very few elements, since it is expected |
| 148 that everything of note would be provided by frameworks. | 148 that everything of note would be provided by frameworks. |
| 149 | 149 |
| 150 The following elements are implicitly registered by default, even if | 150 The following elements are implicitly registered by default, even if |
| 151 you haven't imported anything. You can get to their constructors if | 151 you haven't imported anything. You can get to their constructors if |
| 152 you import sky:core (basically, sky:core is always imported by defaul; | 152 you import dart:sky (basically, dart:sky is always imported by defaul; |
| 153 it's the runtime library). None of these elements have shadow trees. | 153 it's the runtime library). None of these elements have shadow trees. |
| 154 | 154 |
| 155 ``<import src="foo.sky">`` | 155 ``<import src="foo.sky">`` |
| 156 - Downloads and imports foo.sky in the background. | 156 - Downloads and imports foo.sky in the background. |
| 157 | 157 |
| 158 ``<import src="foo.sky" as="foo">`` | 158 ``<import src="foo.sky" as="foo">`` |
| 159 - Downloads and imports foo.sky in the background, using "foo" as its | 159 - Downloads and imports foo.sky in the background, using "foo" as its |
| 160 local name (see ``<script>``). | 160 local name (see ``<script>``). |
| 161 | 161 |
| 162 ``<template>`` | 162 ``<template>`` |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 213 |
| 214 The following attributes are available on all elements: | 214 The following attributes are available on all elements: |
| 215 | 215 |
| 216 * ``id=""`` (any value) | 216 * ``id=""`` (any value) |
| 217 * ``class=""`` (any value, space-separated) | 217 * ``class=""`` (any value, space-separated) |
| 218 * ``style=""`` (declaration part of a Sky style rule) | 218 * ``style=""`` (declaration part of a Sky style rule) |
| 219 * ``lang=""`` (language code) | 219 * ``lang=""`` (language code) |
| 220 * ``dir=""`` (ltr or rtl only) | 220 * ``dir=""`` (ltr or rtl only) |
| 221 * ``contenteditable=""`` (subject to future developments) | 221 * ``contenteditable=""`` (subject to future developments) |
| 222 * ``tabindex=""`` (subject to future developments) | 222 * ``tabindex=""`` (subject to future developments) |
| OLD | NEW |