Skip to content

Add Attribute class #14

Description

@tunnckoCore

One more thing is to add Attribute, which should not inherit from Node, so this would be enough

class Attribute {
  constructor (name, value, ns) {
    this.nodeType = 2
    this.name = name
    this.value = value
    this.namespaceURI = ns
  }
}

I can PR with fixes and updates addressed in couple of issues, do you want such PR?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions