microformats / microformats2-parsing

For collecting and handling issues with the microformats2 parsing specification: http://microformats.org/wiki/microformats2-parsing
14 stars 6 forks source link

Should the specification imply properties for <link> elements? #14

Open Zegnat opened 6 years ago

Zegnat commented 6 years ago

The parsing specification was just updated to support p- and u- property parsing on <link> elements.

Because “authoring consistency is a good reason to keep a spec internally consistent” (–@tantek, chat), making <link> further consistent with <a> and <area> by adding rules for implied properties could be valid.

Example

<link class="h-card" title="Tantek Çelik" href="http://tantek.com/">

Should match the parsing output of:

<a class="h-card" href="http://tantek.com/">Tantek Çelik</a>

By returning:

{
    "type": [ "h-card" ],
    "properties": {
        "name": [ "Tantek \u00c7elik" ],
        "url": [ "http://tantek.com/" ]
    }
}
gRegorLove commented 4 years ago

We touched on this briefly in tonight's Homebrew Website Club. @chrisaldrich was wondering about doing this on a TiddlyWiki where it's limited to adding HTML in the <head>.