-
Notifications
You must be signed in to change notification settings - Fork 2
Description
The parsing spec does not currently include any special handling of URLs in the html value for e-* microformats. From http://microformats.org/wiki/microformats2-parsing#parsing_an_e-_property:
html: theinnerHTMLof the element by using the HTML spec: Serializing HTML Fragments algorithm, with leading/trailing whitespace removed.
However, some of the microformats tests do resolve relative URLs. See for example:
- https://github.com/microformats/tests/blob/master/tests/microformats-v2/h-entry/urlincontent.json
- https://github.com/microformats/tests/blob/master/tests/microformats-mixed/h-entry/mixedroots.json
The major libraries are somewhat split on this. PHP and Ruby do resolve relative URLs. Go, Python, and Node do not resolve relative URLs.
Recent discussion in #microformats was inconclusive (though we didn't explore it too deeply)
At the very least, we need to synchronize the spec and the test cases. Personally, I'm leaning toward updating the spec to resolve relative URLs, since otherwise they are useless in any kind of embedding use-case, and they may not actually be able to be resolved, since you no longer have the <base> element.