Skip to content

Attribute selectors not fully parsed #6

@cvrebert

Description

@cvrebert

Currently, the parse tree doesn't include full details for attribute selectors. For example, [att*=val] is parsed into:

{"type":"selectors","nodes":[
  {
    "type":"selector",
    "nodes":[
      {
        "type":"attribute",
        "content":"att*=val"
      }
    ]
  }
]}

It would be better if the "content" was further parsed, so we could get something like:

{"type":"selectors","nodes":[
  {
    "type":"selector",
    "nodes":[
      {
        "type":"attribute",
        "name":"att",
        "operator":"*=",
        "content":"val"
      }
    ]
  }
]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions