LeaVerou/parsel

Parsing `*` does not include a name

bramus opened this issue · 1 comments

Output for parsing * is this:

{
	"type": "type",
	"content": "*",
	"pos": [
		0,
		1
	]
}

Compare this to parsing p (or any other selector): they contain a name:

{
	"type": "type",
	"content": "p",
	"name": "p",
	"pos": [
		0,
		1
	]
}

I would have expected a name to also be included when parsing *

The idea was that name is a specific tag name. But this will be a non-issue if the proposal in #42 is accepted.