07:59
<sideshowbarker>
In WPT do we not actually have any tests which check that “trailing junk” in floating-point-number values is ignored?
08:01
<sideshowbarker>
The only “trailing junk” test I can find is in http://wpt.live/html/semantics/forms/the-input-element/number.html — which is testing valid floating-point number values as defined at https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-floating-point-number — and in that case, the spec requires the trailing junk to not be ignored.
08:04
<sideshowbarker>
But otherwise per https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#rules-for-parsing-floating-point-number-values, for values that are parsed as floating-point numbers (which may not necessarily be “valid” ones), the spec requires any trailing junk in the input string to be ignored when parsing it into a number.
08:05
<sideshowbarker>
And that’s the case where it doesn’t seem like we have any tests in WPT to check that implementations do actually ignore any trailing junk