Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child h-* objects should not include "value" property #26

Open
kylewm opened this issue May 10, 2016 · 0 comments
Open

Child h-* objects should not include "value" property #26

kylewm opened this issue May 10, 2016 · 0 comments

Comments

@kylewm
Copy link

kylewm commented May 10, 2016

From the microformats test suite

<div class="h-card" ><a class="h-card" href="jane.html">Jane Doe</a><p></p></div> 

produces:

{
    "items": [{
        "type": ["h-card"],
        "properties": {
            "name": ["Jane Doe"]
        },
        "children": [{
            "value": "Jane Doe",
            "type": ["h-card"],
            "properties": {
                "name": ["Jane Doe"],
                "url": ["http://example.com/jane.html"]
            }
        }]
    }],
    "rels": {},
    "rel-urls": {}
}

the child h-card should not have a "value" entry -- because it is not a property element ("if that child element itself has a microformat and is a property element"). This was until recently a bit ambiguous in the spec, but has been clarified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant