trusted-types icon indicating copy to clipboard operation
trusted-types copied to clipboard

https://w3c.github.io/trusted-types/dist/spec/#webidl-validate-the-string-in-context should link to the HTML standard's definition of how the validation is performed

Open mbrodesser-Igalia opened this issue 1 year ago • 3 comments
trafficstars

Currently, there's only a note at https://w3c.github.io/trusted-types/dist/spec/#webidl-validate-the-string-in-context linking to the whole HTML standard.

mbrodesser-Igalia avatar Feb 26 '24 09:02 mbrodesser-Igalia

I've searched for whole word matches of "validate" at https://html.spec.whatwg.org/. 10 results, none corresponds to the definition of "validate the string in context".

mbrodesser-Igalia avatar Feb 26 '24 10:02 mbrodesser-Igalia

So it's unclear, how the validation is supposed to happen.

mbrodesser-Igalia avatar Feb 26 '24 10:02 mbrodesser-Igalia

https://w3c.github.io/trusted-types/dist/spec/#html-validate-the-string-in-context is meant.

mbrodesser-Igalia avatar Feb 26 '24 10:02 mbrodesser-Igalia

@mbrodesser-Igalia I think it means that it will be defined in HTML once it's been upstreamed. The html hash link in TT is the correct algorithm.

lukewarlow avatar Mar 13 '24 14:03 lukewarlow