Skip to content

resolve relative URLs in e-* html #38

@willnorris

Description

@willnorris

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: the innerHTML of 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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions