syntax-tree / hast

Hypertext Abstract Syntax Tree format

Home Page:https://unifiedjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplify directive nodes

wooorm opened this issue · comments

commented

Currently, there’s duplicate data in directives (processing instructions and declarations):

{
  "type": "directive",
  "name": "!doctype",
  "value": "!doctype html"
}

I’d like to propose the following instead:

{
  "type": "directive",
  "name": "!doctype",
  "value": "html"
}

But it’s breaking so it will have to wait a while.