OLD | NEW |
1 // Up-to-date as of 2013-04-19. | 1 // Up-to-date as of 2013-04-19. |
2 // Things defined in the W3C's microdata draft, not the main HTML5 draft. | 2 // Things defined in the W3C's microdata draft, not the main HTML5 draft. |
3 // Note: must be included last so that it hits all elements. | 3 // Note: must be included last so that it hits all elements. |
4 | 4 |
5 for (var element in elements) { | 5 for (var element in elements) { |
6 elements[element].itemScope = "boolean"; | 6 elements[element].itemScope = "boolean"; |
7 elements[element].itemType = "settable tokenlist"; | 7 elements[element].itemType = "settable tokenlist"; |
8 elements[element].itemId = "url"; | 8 elements[element].itemId = "url"; |
9 elements[element].itemRef = "settable tokenlist"; | 9 elements[element].itemRef = "settable tokenlist"; |
10 elements[element].itemProp = "settable tokenlist"; | 10 elements[element].itemProp = "settable tokenlist"; |
(...skipping 15 matching lines...) Expand all Loading... |
26 reflectItemValue("url", "source", "src"); | 26 reflectItemValue("url", "source", "src"); |
27 reflectItemValue("url", "track", "src"); | 27 reflectItemValue("url", "track", "src"); |
28 reflectItemValue("url", "video", "src"); | 28 reflectItemValue("url", "video", "src"); |
29 reflectItemValue("url", "a", "href"); | 29 reflectItemValue("url", "a", "href"); |
30 reflectItemValue("url", "area", "href"); | 30 reflectItemValue("url", "area", "href"); |
31 reflectItemValue("url", "link", "href"); | 31 reflectItemValue("url", "link", "href"); |
32 reflectItemValue("url", "object", "data"); | 32 reflectItemValue("url", "object", "data"); |
33 reflectItemValue("string", "data", "value"); | 33 reflectItemValue("string", "data", "value"); |
34 //TODO: time is more complex | 34 //TODO: time is more complex |
35 }); | 35 }); |
OLD | NEW |