Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 5198
Status: rejected
Priority: 0/
Queue: WWW-Mechanize

People
Owner: MARKSTOS [...] cpan.org
Requestors: siegmann [...] tinbergen.nl
Cc:
AdminCc:

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



Subject: add support for Link titles
The current implementation of WWW::Mechanize::Link does not support Link titles, e.g., <a title="This is a link" Although I'm not sure about the exact status of it, Link titles is in the W3C recommendation for HTML 4.01 (see here http://www.w3.org/TR/REC-html40/struct/links.html#h-12.1.4 ) And, of course, I encounter this in webpages, and is correctly parsed/displayed by Mozilla (i.e., shows the title onmouseover) Please consider supporting this feature. Regards, Arjen
[guest - Wed Feb 4 06:02:05 2004]: Show quoted text
> The current implementation of WWW::Mechanize::Link does not support > Link titles, e.g., <a title="This is a link" > > Although I'm not sure about the exact status of it, Link titles is in > the W3C recommendation for HTML 4.01 (see here > http://www.w3.org/TR/REC-html40/struct/links.html#h-12.1.4 ) > > And, of course, I encounter this in webpages, and is correctly > parsed/displayed by Mozilla (i.e., shows the title onmouseover) > > Please consider supporting this feature. > > Regards, > Arjen
Arjen, I think supporting this is a fine idea. Please consider submitting a patch to WWW::Mechanize::Link and the related tests. The code here is simple and I think you'll find the work easy. Be sure to start with a recent copy of Mech, at least 1.05_02. "::Link" was updated recently, which will make it even easier to add new attributes. You may also need to patch Mechanize.pm to make sure it actually parses the title itself and passes it to the link object. Mark
On Wed Feb 04 06:02:05 2004, guest wrote: Show quoted text
> The current implementation of WWW::Mechanize::Link does not support > Link titles, e.g., <a title="This is a link" > > Although I'm not sure about the exact status of it, Link titles is in > the W3C recommendation for HTML 4.01 (see here > http://www.w3.org/TR/REC-html40/struct/links.html#h-12.1.4 ) > > And, of course, I encounter this in webpages, and is correctly > parsed/displayed by Mozilla (i.e., shows the title onmouseover) > > Please consider supporting this feature.
I recommend this wish be closed. Mech Link objects already support title attributes some because extra attributes can be passed in to the new() constructor, and received through attrs(). The find_links() method already provides numerous ways to find links, and I'm interested in keeping uncommonly needed features of the Mech core. If there is continued interest to have this, it would be best to see if it can be implemented through a plugin, as WWW::Mechanize::Pluggable supports. If that's possible, it would be interesting to know the details, so that Mech an be extended to better support these kind of plugins. Mark