JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / plugins / listblock / plugin.js
index e22956b..c505f0e 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -100,8 +100,7 @@ CKEDITOR.plugins.add( 'listblock',
                                                                        ' href="javascript:void(\'', value, '\')" ' +\r
                                                                        ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) +         // #188\r
                                                                                '="CKEDITOR.tools.callFunction(', this._.getClick(), ',\'', value, '\'); return false;"',\r
-                                                                       ' role="option"' +\r
-                                                                       ' aria-posinset="' + ++this._.size + '">',\r
+                                                                       ' role="option">',\r
                                                                        html || value,\r
                                                                '</a>' +\r
                                                        '</li>' );\r
@@ -122,11 +121,6 @@ CKEDITOR.plugins.add( 'listblock',
                                        {\r
                                                this._.close();\r
                                                this.element.appendHtml( this._.pendingHtml.join( '' ) );\r
-\r
-                                               var items = this._.items,\r
-                                                       doc = this.element.getDocument();\r
-                                               for ( var value in items )\r
-                                                       doc.getById( items[ value ] + '_option' ).setAttribute( 'aria-setsize', this._.size );\r
                                                delete this._.size;\r
 \r
                                                this._.pendingHtml = [];\r