Author: hlship
Date: Thu Apr  2 23:56:31 2009
New Revision: 761484

URL: http://svn.apache.org/viewvc?rev=761484&view=rev
Log:
TAP5-614: Spacer image should have a blank alt attribute to meet w3c 
accessability standards

Modified:
    
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java?rev=761484&r1=761483&r2=761484&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Autocomplete.java
 Thu Apr  2 23:56:31 2009
@@ -1,4 +1,4 @@
-// Copyright 2007, 2008 The Apache Software Foundation
+// Copyright 2007, 2008, 2009 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@
  * }
  * </pre>
  */
-...@includejavascriptlibrary({"${tapestry.scriptaculous}/controls.js", 
"autocomplete.js"})
+...@includejavascriptlibrary({ "${tapestry.scriptaculous}/controls.js", 
"autocomplete.js" })
 public class Autocomplete
 {
     static final String EVENT_NAME = "autocomplete";
@@ -130,6 +130,8 @@
 
                        "class", "t-autoloader-icon " + 
CSSClassConstants.INVISIBLE,
 
+                       "alt", "",
+
                        "id", loaderId);
         writer.end();
 
@@ -187,7 +189,7 @@
             }
         };
 
-        resources.triggerEvent("providecompletions", new Object[] {input}, 
callback);
+        resources.triggerEvent("providecompletions", new Object[] { input }, 
callback);
 
         ContentType contentType = responseRenderer.findContentType(this);
 


Reply via email to