File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,26 @@ let attribs = "ppx attribs", HtmlTests.make Html.[
303
303
[[% html " <div aria-hidden=true></div>" ]],
304
304
[div ~a: [a_aria " hidden" [" true" ]] []] ;
305
305
306
+ " microdata attributes" ,
307
+ [[% html " <dl itemscope itemtype='https://md.example.com/track https://md.example.com/lighting'><dt>Name</dt><dd itemprop='name'>Turnout Lantern Kit</dd><dt>Purpose<dd>For retrofitting 2 <span itemprop='track-type'>C</span> Track turnouts.<meta itemprop='scale' content='HO'></dl>" ]],
308
+ [dl
309
+ ~a: [
310
+ a_itemscope () ;
311
+ a_itemtype [" https://md.example.com/track" ; " https://md.example.com/lighting" ];
312
+ ]
313
+ [
314
+ dt [txt " Name" ];
315
+ dd ~a: [a_itemprop " name" ] [txt " Turnout Lantern Kit" ];
316
+ dt [txt " Purpose" ];
317
+ dd
318
+ [
319
+ txt " For retrofitting 2 " ;
320
+ span ~a: [a_itemprop " track-type" ] [txt " C" ];
321
+ txt " Track turnouts." ;
322
+ meta_itemprop " scale" ~a: [a_content " HO" ] () ;
323
+ ]
324
+ ]];
325
+
306
326
" touch events" ,
307
327
[[% html " <div ontouchstart='alert()'></div>" ]],
308
328
[div ~a: [a_ontouchstart " alert()" ] []] ;
You can’t perform that action at this time.
0 commit comments