h-org parsing tests

This page was design to test the parsing of h-org. These tests are part of the micorformats 2 test suite.

Simple org (h-org parsing test)

Mozilla Foundation

The expected JSON output:


{
    "items": [{ 
        "type": ["h-org"],
        "properties": {
            "name": ["Mozilla Foundation"]
        }
    }]
}

Just a hyperlink (h-org parsing test)

Mozilla Foundation

The expected JSON output:


{
    "items": [{ 
        "type": ["h-org"],
        "properties": {
            "name": ["Mozilla Foundation"],
            "url": ["http://mozilla.org/"]
        }
    }]
}

Note: URL is not part of the schema for h-org, but is added here as an implied rule.

Simple properties (h-org parsing test)

W3C - CSS Working Group

The expected JSON output:


{
    "items": [{ 
        "type": ["h-org"],
        "properties": {
            "organization-name": ["W3C"],
            "organization-unit": ["CSS Working Group"],
            "name": ["W3C - CSS Working Group"]
        }
    }]
}

Change log:

Contributors :