What is the issue with the HTML Standard?
The PR for this feature is being upstreamed here #11895. One of the things that is exposed by the idl (https://wicg.github.io/scroll-to-text-fragment/#dom-document-fragmentdirective) is the fragmentDirective that lists all of the directives parsed from the URL.
In order to limit the amount of work that a user-agent has to do for each directive, I think this should allow or mandate that when constructing these directives, we only keep a unique set.
@flackr @domfarolino