Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: sky/specs/markup.md

Issue 733313003: Specs: Make </> automatically close the last open tag, so you don't have to repeat yourself all the… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/specs/parsing.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 substring ``</style``. The sequence must be valid sky style. 127 substring ``</style``. The sequence must be valid sky style.
128 - Otherwise, zero or more of the following, in any order: 128 - Otherwise, zero or more of the following, in any order:
129 - comments 129 - comments
130 - text 130 - text
131 - escapes 131 - escapes
132 - elements 132 - elements
133 4. Finally, the end tag, which may be omitted if the element's tag 133 4. Finally, the end tag, which may be omitted if the element's tag
134 name is not ``template``, consisting of: 134 name is not ``template``, consisting of:
135 1. ``<`` 135 1. ``<``
136 2. ``/`` 136 2. ``/``
137 3. Same sequence of characters as "tag name" above. 137 3. Same sequence of characters as "tag name" above; this may
138 be omitted if no start tags have had their end tag omitted
139 since this element's start tag, unless this element's tag
140 name is ``script`` or ``style``.
138 4. ``>`` 141 4. ``>``
139 142
140 143
141 Sky Markup: Elements 144 Sky Markup: Elements
142 ==================== 145 ====================
143 146
144 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
145 that everything of note would be provided by frameworks. 148 that everything of note would be provided by frameworks.
146 149
147 The following elements are implicitly registered by default, even if 150 The following elements are implicitly registered by default, even if
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 217
215 The following attributes are available on all elements: 218 The following attributes are available on all elements:
216 219
217 * ``id=""`` (any value) 220 * ``id=""`` (any value)
218 * ``class=""`` (any value, space-separated) 221 * ``class=""`` (any value, space-separated)
219 * ``style=""`` (declaration part of a Sky style rule) 222 * ``style=""`` (declaration part of a Sky style rule)
220 * ``lang=""`` (language code) 223 * ``lang=""`` (language code)
221 * ``dir=""`` (ltr or rtl only) 224 * ``dir=""`` (ltr or rtl only)
222 * ``contenteditable=""`` (subject to future developments) 225 * ``contenteditable=""`` (subject to future developments)
223 * ``tabindex=""`` (subject to future developments) 226 * ``tabindex=""`` (subject to future developments)
OLDNEW
« no previous file with comments | « no previous file | sky/specs/parsing.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698