Skip to content

Commit 9975070

Browse files
authored
Merge pull request #81 from WICG/bang-marker-no-question
Switch from <?marker?> to <!marker>
2 parents b6279b1 + adb1f98 commit 9975070

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

patching-explainer.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ The patches uses two markers to "emulate" append:
140140
<div contentname=search-results>
141141
<p>first result</p>
142142
<!-- add markers to allow for "append" -->
143-
<?marker name=m1?><?marker name=m2?>
143+
<!marker m1><!marker m2>
144144
</div>
145145
</template>
146146

@@ -152,7 +152,7 @@ The patches uses two markers to "emulate" append:
152152
<div contentname=search-results>
153153
<p>second result</p>
154154
<!-- new markers are needed for the next "append". -->
155-
<?marker name=m3?><?marker name=m4?>
155+
<!marker m3><!marker m4>
156156
</div>
157157
</template>
158158

@@ -179,7 +179,7 @@ The patches uses a single marker node:
179179
<div contentname=search-results>
180180
<p>first result</p>
181181
<!-- add markers to allow for "append" -->
182-
<?marker name=more?>
182+
<!marker more>
183183
</div>
184184
</template>
185185

@@ -191,7 +191,7 @@ The patches uses a single marker node:
191191
<div contentname=search-results>
192192
<p>second result</p>
193193
<!-- new markers are needed for the next "append". -->
194-
<?marker name=more?>
194+
<!marker more>
195195
</div>
196196
</template>
197197

@@ -222,9 +222,9 @@ This makes it possible to replace a `<title>` element:
222222

223223
```html
224224
<head>
225-
<?marker name="metadata" start?>
225+
<!marker metadata start>
226226
<title>Page 1</title>
227-
<?marker name="metadata" end?>
227+
<!marker metadata end>
228228
</head>
229229

230230
<template contentfor="metadata">
@@ -243,13 +243,13 @@ The interleaved patching example then becomes:
243243

244244
```html
245245
<!-- explicit markers are needed *inside* the element being patched. end markers are omitted -->
246-
<div><?marker name=product-carousel start?>Loading...</div>
247-
<div><?marker name=search-results start?>Loading...</div>
246+
<div><!marker product-carousel start>Loading...</div>
247+
<div><!marker search-results start>Loading...</div>
248248

249249
<template contentfor=search-results>
250250
<p>first result</p>
251251
<!-- add markers to allow for "append" -->
252-
<?marker name=search-results-more?>
252+
<!marker search-results-more>
253253
</template>
254254

255255
<template contentname=product-carousel>
@@ -259,7 +259,7 @@ The interleaved patching example then becomes:
259259
<template contentname=search-results-more>
260260
<p>second result</p>
261261
<!-- new markers are needed for the next "append". -->
262-
<?marker name=search-results-more?>
262+
<!marker search-results-more>
263263
</template>
264264

265265
<template contentname=search-results-more>
@@ -303,10 +303,10 @@ Very initial example:
303303
<tr><td>static data</td></tr>
304304
<tr><td>static data</td></tr>
305305

306-
<?marker name=dyn-start?>
306+
<!marker dyn-start>
307307
<tr><td>dynamic data 1</td></tr>
308308
<tr><td>dynamic data 2</td></tr>
309-
<?marker name=dyn-end?>
309+
<!marker dyn-end>
310310
</tbody>
311311
</table>
312312

0 commit comments

Comments
 (0)