Skip to content

Conversation

wooorm
Copy link
Member

@wooorm wooorm commented Apr 25, 2020

hast and xast are a bit much to look at: every element has a name (xast) or tagName (hast). This makes that cleaner.

Instead of:

element[0] [tagName="br"]

You now get:

element<br>[0]

The angle brackets are in part inspired by their use in XML, but also sometimes used by Node’s util.inspect:

<ref *1> {
  a: [ [Circular *1] ],
  b: <ref *2> { inner: [Circular *2], obj: [Circular *1] }
}

@wooorm wooorm added 🦋 type/enhancement This is great to have 🙉 open/needs-info This needs some more info 🗄 area/interface This affects the public interface labels Apr 25, 2020
@wooorm wooorm merged commit d1f26cc into master Apr 28, 2020
@wooorm wooorm deleted the kinds branch April 28, 2020 07:20
@wooorm wooorm added ⛵️ status/released and removed 🙉 open/needs-info This needs some more info labels Apr 28, 2020
@wooorm wooorm added the 💪 phase/solved Post is done label Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗄 area/interface This affects the public interface 💪 phase/solved Post is done 🦋 type/enhancement This is great to have
Development

Successfully merging this pull request may close these issues.

2 participants