You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 17, 2021. It is now read-only.
We're sure there will be errors around here - typos on our docs, clever bugs in code. Feel free to bring these to our notice by filing a GitHub issue.
25
25
26
-
It's also important to note that CHTML is a bleeding edge technology and may change quickly. Please do thread safely! But as much as we know today, stability is just a few iterations away.
26
+
It's also important to note that CHTML is a bleeding edge technology and may change quickly. Please do thread safely! But as much as we know today, stability is just a few iterations away.
Copy file name to clipboardExpand all lines: chtml/v060/specs/README.md
+13-11
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ let authorName = article.scopeTree.author.scopeTree.name;
73
73
74
74
Now, much structural guesswork and inefficient DOM queries have been avoided with a simple semantic markup pattern.
75
75
76
-
Visit the [Scoped HTML Specs](/chtml/v060/specs/scoped-html/) to learn more.
76
+
Visit the [Scoped HTML docs](/chtml/v060/specs/scoped-html/) to learn more.
77
77
78
78
### Scoped CSS
79
79
Scoped CSS is a styling approach that lets us couple smaller-sized stylesheets with elements in an HTML document. Defined rules now get scoped to these containing elements.
@@ -115,7 +115,7 @@ Scoped CSS fits right in with Scoped HTML. If we designated the `#article` eleme
115
115
</div>
116
116
```
117
117
118
-
If we wanted to style the structural parts of deeply nested scopes, a path-based ID could be used.
118
+
If we wanted to style the structural parts of deeply nested scopes, a path notation would be used.
119
119
120
120
```html
121
121
<divrootid="article">
@@ -147,12 +147,12 @@ If we wanted to style the structural parts of deeply nested scopes, a path-based
147
147
</div>
148
148
```
149
149
150
-
Scoped styles save us the specificity wars that comes with document-level stylesheets. We also gain the ease of maintenace and progressive development.
150
+
Scoped styles save us the specificity wars that come with document-level stylesheets. We also gain the ease of maintenace and progressive development.
151
151
152
-
Visit the [Scoped CSS Specs](/chtml/v060/specs/scoped-css/) to learn more.
152
+
Visit the [Scoped CSS docs](/chtml/v060/specs/scoped-css) to learn more.
153
153
154
154
### Scoped JS
155
-
Scoped JS is a special technology that lets us couple JavaScript functionality with any element in a page. Instead of the traditional way of retrieving elements into scripts, Scoped JS lets us place functionality just right where they are needed.
155
+
Scoped JS is a special technology that lets us couple JavaScript functionality with any element in a page. While we traditionally maintain elements and their presentational logic separately, Scoped JS lets us place functionality just right where they are needed.
156
156
157
157
We define a *scoped script* with the special `text/scoped-js` MIME type.
158
158
@@ -205,7 +205,7 @@ If we employed Scoped HTML in our markup, we could simply traverse the *scope tr
205
205
206
206
A scope may also receive application data, and further distribute received data to child scopes. Automatic *observability* steps in to do the dirty work of keeping the UI in sync with application state.
207
207
208
-
Visit the [Scoped JS Specs](/chtml/v060/specs/scoped-js/) to learn more.
208
+
Visit the [Scoped JS docs](/chtml/v060/specs/scoped-js/) to learn more.
209
209
210
210
### HTML Transport
211
211
HTML Transport is an export/import system for HTML. Here, reusable HTML fragments are defined as *exports* within a `<template>` element.
@@ -219,7 +219,7 @@ HTML Transport is an export/import system for HTML. Here, reusable HTML fragment
219
219
</template>
220
220
```
221
221
222
-
*Exports* can be easily placed anywhere in the main document.
222
+
These *exports* could be easily placed anywhere in the main document.
223
223
224
224
```html
225
225
<body>
@@ -228,21 +228,23 @@ HTML Transport is an export/import system for HTML. Here, reusable HTML fragment
228
228
</body>
229
229
```
230
230
231
-
In a script, we could programmatically import an *export*.
231
+
And in a script, we could programmatically import an *export*.
232
232
233
233
```js
234
234
let import1 =HTMLTransport.import('export/one');
235
235
```
236
236
237
-
Now, while we have statically defined exports in a `<template>` element above, we could also define them as standalone HTML files on the server to dynamically bundle them together as a remote *HTML bundle*.
237
+
Now, while we have statically defined exports in a `<template>` element above, we could also have defined them as standalone HTML files on the server with a view to dynamically bundling them together as a remote *HTML bundle*.
238
238
239
239
Here is how a remote *HTML bundle* file on the server could look:
240
240
241
241
**file://bundle.html**
242
242
243
243
```html
244
-
<!-- file content-->
244
+
<!--the file at some-path/export/one.html-->
245
245
<divnamespace="export/one"></div>
246
+
247
+
<!-- the file at some-path/export/two.html -->
246
248
<divnamespace="export/two"></div>
247
249
```
248
250
@@ -261,4 +263,4 @@ This remote bundle is easily connected to a page by using the `src` attribute on
261
263
262
264
Code organization, extensibility and composability are HTML Transport's distinguishing features that let us build an entire app with much fewer components.
263
265
264
-
Visit the [HTML Transport Specs](/chtml/v060/specs/html-transport/) to learn more.
266
+
Visit the [HTML Transport docs](/chtml/v060/specs/html-transport/) to learn more.
@@ -853,4 +853,4 @@ Here are the configuration options.
853
853
854
854
+`ENV.params.listAttributes` - (Array): Attributes to be treated as *list-type* attributes, in addtion to the `class`, `role` attributes (and the `scope`, `parts-hints` attributes in a ScopedHTML-based document). This is empty by default.
855
855
856
-
+`ENV.params.norecomposeAttributes` - (Array): Attributes to be excluded during recomposition. This is the `nocompose` attribute itself and the `shadow` attribute, by default.
856
+
+`ENV.params.norecomposeAttributes` - (Array): Attributes to be excluded during recomposition. This is the `nocompose` attribute itself and the `shadow` attribute, by default.
0 commit comments