Open
Description
We can use something like libsyntax's Span
and Spanned
types to track positions in the input stream.
The tokenizer will remember its current position and the position at certain events, e.g. start tag, start attribute name. The tree builder will call a tree sink method (with an empty default) to annotate the DOM with span information.
Then we can write a command-line HTML validator with the same output UI as rustc :)
Note that eventually it will be possible for a single document's nodes to come from multiple text sources, e.g. with document.write
.
Metadata
Metadata
Assignees
Labels
No labels