OCaml HTML5 parser/serialiser based on Python's JustHTML
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 16 lines 714 B view raw
1(** Microdata validation checker. 2 3 Validates HTML5 microdata (itemscope, itemtype, itemprop, itemid, itemref). 4 5 This checker verifies that microdata attributes are used correctly: 6 - itemprop can only appear on elements that are properties of an item 7 (descendant of itemscope or referenced by itemref) 8 - itemid requires both itemscope and itemtype 9 - itemref requires itemscope 10 - itemtype requires itemscope 11 - itemref values must reference existing IDs 12 - Detects itemref cycles (A references B, B references A) 13 - itemprop values must be valid property names (no colons unless URL) *) 14 15val checker : Checker.t 16(** [checker] is a checker instance for validating microdata. *)