Skip Menu |
 

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 41492
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: BFOZ [...] cpan.org
Cc: bfoz [...] bfoz.net
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



CC: bfoz [...] bfoz.net
Subject: HTML::Form Feature Request: Find/Set form inputs using element ID
Download (untitled) / with headers
text/plain 524b
The current implementation references form input elements using the element's name attribute. For the most part this works fine, however it seems not everyone likes to play nice and assign stable names to form elements. Consequently, it would be helpful to have a means of referencing form inputs using id attributes. For example, Apple's iTunes Connect interface assigns elements a dotted-numeric name (eg. name="9.11.1") that changes every time they update the page. Each element does appear to get a stable id attribute.
Download (untitled) / with headers
text/plain 207b
Implemented in http://github.com/gisle/libwww-perl/commit/5a3f584b3f33ff87e39c4a91dacb0435a3d1d16e You can now do stuff like: $form->value("#id", 42); to set the value of the input with an ID of "id".


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.