Skip to content

Use dt-* property from a nested microformat as the value for a parent dt-* property #71

Open
@Zegnat

Description

@Zegnat

If an element that is being parsed is both a property and a microformat, values are extracted for the property. In spec look for: “if that child element itself has a microformat ("h-*" or backcompat roots) and is a property element”.

I would expect dt- properties to get a value based on a dt- property within the nested microformat.

Change proposal:

  • if that child element itself has a microformat ("h-*" or backcompat roots) and is a property element, add it into the array of values for that property as a { } structure, add to that { } structure:
    • value:
      • if it's a p-* property element, use the first p-name of the h-* child
      • else if it's an e-* property element, re-use its { } structure with existing value: inside.
      • else if it's a u-* property element and the h-* child has a u-url, use the first such u-url
      • else if it's a dt-* property element and the h-* child has a dt-* property of its own, use the first such dt-* property value
      • else use the parsed property value per p-*,u-*,dt-* parsing respectively

(Only the second to last step is new.)

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