...

/

Analyzing Fragmented HTML Documents

Analyzing Fragmented HTML Documents

Learn how to implement a fragmented position analyzer.

Implementing the FragmentsPositionAnalyzer class

We can see our fragments parser provides an immense amount of information about our source document. Importantly, our results have avoided potentially problematic areas of our input document by skipping over the results of other parsers.

We can bring all this information together to begin asking interesting questions about where those skipped regions appear in our document.

For instance, if we wanted to write a code formatter that formatted our embedded languages and our ...