cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Lundquist (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-2020) CAPTCHA <input> element should have autocomplete="off"
Date Tue, 06 Mar 2007 19:33:24 GMT
CAPTCHA <input> element  should have autocomplete="off"
-------------------------------------------------------

                 Key: COCOON-2020
                 URL: https://issues.apache.org/jira/browse/COCOON-2020
             Project: Cocoon
          Issue Type: Bug
          Components: Blocks: Forms
    Affects Versions: 2.1.10, 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.11-dev (Current SVN), 2.2-dev
(Current SVN)
            Reporter: Mark Lundquist
            Priority: Trivial


The bug summary says it all, and this isn't even enough to bother making a patch, all it takes
is the following lines added to forms-field-styling.xsl (the diff is from my 2.1.8 vendor
branch, but this fix will work in all Cocoon versions):

forms-field-styling.xsl        (working copy)
@@ -55,6 +55,9 @@
       </xsl:if>
       <!--  @id:input is what labels point to -->
       <input name="{@id}" id="{@id}:input" value="{fi:value}" title="{fi:hint}" type="text">
+        <xsl:if test="fi:captcha-image">
+          <xsl:attribute name="autocomplete" select="'off'"/>
+        </xsl:if>
         <xsl:apply-templates select="." mode="styling"/>
       </input>
       <xsl:apply-templates select="." mode="common"/>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message