You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ask you to add interface for accessing input labels. It is currently
possible to get input's label through the $input->{value_name} in some
cases, but it not always corresponds to label. If label for input does
not exist, parser do some heuristic to guess "value_name" and swallow
all plain text following input through $p->get_phrase.
Furthermore current value_name parsing has a flaw: if label defined
after the input, the label is ignored (because at the time of parsing
of the input element there is no corresponding entry in %labels).
I'm proposing a patch which implements the interface for accessing
labels and label assignment is free from mentioned flaw (labels
assigned to inputs when form completely parsed).
Attached:
- patch
- test script
The work that needs to be done here is to apply the original patch to a new branch, take the test file and integrate it into our tests, and then discuss whether this interface is useful, and possibly make changes.
oalders
changed the title
Interface for accesing labels in HTML::Form inputs [rt.cpan.org #47016]
Interface for accessing labels in HTML::Form inputs [rt.cpan.org #47016]
Oct 6, 2022
Migrated from rt.cpan.org#47016 (status was 'open')
Requestors:
Attachments:
From ykar@cpan.org on 2009-06-16 18:05:00:
From ether@cpan.org on 2017-01-25 21:37:33:
The text was updated successfully, but these errors were encountered: