Closed (fixed)
Project:
Mollom
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Apr 2010 at 09:06 UTC
Updated:
24 Apr 2014 at 17:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
miro_dietikeraccessibility tag
Comment #2
dave reidThe target attribute is invalid in XHTML. I'm open to hearing ideas on how to solve this.
Should we maybe just not link to Mollom on the CAPTCHA itself? Is there a reason we do it that way? I wouldn't think the CAPTCHA image would itself be a link.
Comment #3
dries commentedWe could remove the link.
Comment #4
dave reidYeah I think that's the best approach. Especially since people have to click on the audio captcha to get it to play, if people happen to randomly click on the image captcha (I admit, I randomly click *all the time*), I wouldn't expect to be taken away from the form. Once I re-roll #788968: Simplify the JS and captcha-fetching code for D6 and get that in to both branches, this will be an easy change. :)
Comment #5
miro_dietikerChanging issue title. This solution will be fine for us.
Comment #6
dave reidHere's the patch to un-link the image captcha in D7.
Comment #7
miro_dietikerLooks fine to me.
Comment #8
dries commentedLooks broken to me but the tests don't catch it.
- Shouldn't we use $captcha instead of $output in the first $output (statement with the span)?
- I'm not sure the switch to theme_image() is necessary.
Comment #9
dave reidFirst part is def. a bug. I should probably add some tests to ensure that the actual
tag is generated properly. What do you think Dries?
I put in theme_image() because it just seems odd that we're not using the APIs when we should be. I guess the case could be made that we don't want this HTML to ever be overridable, in which case we can call theme_image() directly.
Comment #10
dave reidFixed the bug.
Comment #11
dries commentedI suggest we extend the following two asserts to also check for the img-tag.
Comment #12
dave reidAdded the xpath assertions for img[@alt="Mollom CAPTCHA"] to the two functions listed above.
Comment #14
dave reid#12: 768710-mollom-unlink-image-captcha-D7.patch queued for re-testing.
Comment #15
dries commentedCommitted to CVS HEAD. Needs to be backported to Drupal 6.
Comment #16
dries commentedBackported to DRUPAL-6--1 and committed directly.