[Laszlo-checkins] r14178 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml

hqm@openlaszlo.org hqm at openlaszlo.org
Wed Jun 17 13:24:47 PDT 2009


Author: hqm
Date: 2009-06-17 13:24:46 -0700 (Wed, 17 Jun 2009)
New Revision: 14178

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Log:
Change 20090617-hqm-j by hqm at badtzmaru.home on 2009-06-17 15:12:14 EDT
    in /Users/hqm/openlaszlo/trunk6
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: CSS improvement for DHTML accesibility implementation

New Features:

Bugs Fixed: LPP-8248

Technical Reviewer: ptw
QA Reviewer: max
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ for accessibility API, add a CSS style, lzaccessibilitydiv,  for <label> tags to use

+ add stubs for 
  LzSprite.prototype.setAAActive 
  LzSprite.prototype.setAASilent 
  LzSprite.prototype.setAAName 
  LzSprite.prototype.setAATabIndex 



Tests:

+ For accessibility CSS change, verify that in test case in LPP-8248 , <label> element content is still
hidden    




Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2009-06-17 19:34:52 UTC (rev 14177)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2009-06-17 20:24:46 UTC (rev 14178)
@@ -388,6 +388,9 @@
     lztextlink: {
         cursor: 'pointer'
     },
+    lzaccessibilitydiv: {
+       display: 'none'
+    },
     writeCSS: function() {
         var rules = [];
         var css = '';
@@ -2397,7 +2400,7 @@
         // If not already created, create a <label> element, nested in
         // a <div style='display:none'> to make it invisible
         this.aadescriptionDiv = aadiv = document.createElement('LABEL');
-        aadiv.style.display = "none";
+        aadiv.className = 'lzaccessibilitydiv';
         // Safari reader only speaks labels which have a 'for' attribute
         aadiv.setAttribute('for', this.__LZdiv.id);
         this.__LZdiv.appendChild(aadiv);
@@ -2430,3 +2433,21 @@
 LzSprite.prototype.setAASilent = function( s ){
     // Not yet implemented
 }
+
+
+/**
+  * Set accessibility name
+  * @param string s: Sets the accessibility name for this view
+  */
+LzSprite.prototype.setAAName = function( s ){
+    // Not yet implemented
+}
+
+
+/**
+ * Set accessibility tab order
+ * @param number s: The tab order index for this view.  Must be a unique number.
+ */
+LzSprite.prototype.setAATabIndex = function( s ){
+    // Not yet implemented
+}



More information about the Laszlo-checkins mailing list