Open rcj-siteimprove opened 1 month ago
Latest commit: cede617f91020747e713e5c8566c2f82eb2def40
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
A variable was incorrectly being shadowed causing the state to be set incorrectly in some cases. This caused some kind of explosion in the recursion which, if there were enough
<label>
s inside the outer label (more than 5 I think), would lead to the maximum number of stack frames being exceeded.In addition, if the number of inner labels was small enough, it would not crash, but the accessible name of the first
<input>
would be incorrect. This PR fixes that. The names of<input>
s inside the inner<label>
s are still computed differently than what Chrome computes. It's not completely clear yet, if Chrome is actually implementing the spec and if not, if we should follow chrome or the spec.Example
In this example the first
<input>
was getting the computed name of "Foo Foo BarBar" where Chrome would get "Foo Bar". With this PR we are aligned with Chrome for that element.I also updated some function descriptions with some examples to make it a little clearer what exactly referrer and referred means for
<label>
and<input>
s.To do
<input>
should be.