Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Preserve empty inline nodes #167

@Goaman

Description

@Goaman

In html when I parse an inline node (e.g. span, b, i) that has not text inside:

<b class="myClass"></b>

It disappear in the vdocument.

We should keep these nodes as they might represent something in the context they are used. For instance, they can have content in css:

.myClass::before {content: 'foo'}

Maybe we could handle that case with an EmptyNode that is created when no char text is found?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions