HF RL Explorer

Source position tracking is inaccurate for elements when position tracking is enabled

Source position tracking is inaccurate for elements when position tracking is enabled: a task in LegoFlow-SWE (Harbor dataset). When position tracking is turned on via Parser.htmlParser().setTrackPosition(true) , the source range information obtained from element.sourceRange() and…

The task

When position tracking is turned on via `Parser.htmlParser().setTrackPosition(true)`, the source range information obtained from `element.sourceRange()` and `element.endSourceRange()` is not reliable. The `Range` objects returned by these methods contain incorrect or imprecise `Position` data, leading to wrong…

Part of Lego-X/LegoFlow-SWE.