Skip to content

Source position for attributes #1933

@jrfaller

Description

@jrfaller

Hi all,

First, thanks a lot for this excellent library!

I am working on an open-source tool that diffs tree-based languages such as HTML or XML (http://github.com/GumTreeDiff/gumtree), and I wanted to use JSoup to parse HTML and XML files since it is one of the very few parsers I know that has precise source position for the XML/HTML elements. However, I have remarked that this information is not present for the attributes, and it prevents me from fully diffing these files, as attribute name or value modifications are frequent.

Would it be possible to add source location information for attribute keys and values? Or do you have an idea for a workaround?

Thanks in advance.

Cheers!

Metadata

Metadata

Assignees

Labels

improvementAn improvement / new feature idea

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions