Open sesuncedu opened 9 years ago
If there were to return something other than an absolute IRI, then the value should be ignored, although there are no tests for this, so you could say that the behavior is undefined. There are no errors that must be signaled; typically processors just eat bad data without emitting triples. Of course, you're free to detect and raise errors. My own processors typically only do this in validation mode.
... makes it look like there might be some lost text.
Yes, something seems to have been lost in editing. You're interpretation is correct. 4) would read "Set type to the first value returned from element.itemType of the element defining the item which is an absolute URL, if any." (or words to that effect.
My default approach would be to resolve the relative URI; however the only defined error behaviorseems to be for cyclic graphs, which require an item to discarded ("microdata error" seems to be reserved for this situation).
What should happen if the type is not an absolute URL? According to HTML Microdata §5.2 the URL must be absolute.
Must an error be signaled? Must the item be discarded? Is behavior undefined?
The introduction of second level of list (with only one item) makes it look like there might be some lost text.
I assume that 5 only applies if no itemtype property was given (or no valid item type property?)