Skip to content

The emitter opengraph produces rigid, fragile structures #153

Open
@boxabirds

Description

@boxabirds

Consider this HTML construct:

<meta property="og:title" content="‘A Path That Is Not Sustainable’: College Hits Breaking Point, Sends Home Majority of Student Body" />

This is turned into the following by the opengraph module:

       [
          "og:title",
          "‘A Path That Is Not Sustainable’: College Hits Breaking Point, Sends Home Majority of Student Body"
        ],

Does anyone know why this couldn't instead be:

"og:title":"‘A Path That Is Not Sustainable’: College Hits Breaking Point, Sends Home Majority of Student Body",

A case for having the output be this way:

  1. You can then do semantic selectors instead of positional selectors (["og:title"] vs [1])
  2. If there are multiple occurrences with an og:tag then I think this is a bug, certainly for the purposes of extruct. Or maybe I'm wrong on this.

Thoughts most welcome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions