Index: CKEditor/trunk/CHANGES.html
===================================================================
--- CKEditor/trunk/CHANGES.html (revision 6971)
+++ CKEditor/trunk/CHANGES.html (revision 6972)
@@ -79,4 +79,5 @@
#7637 : Cursor position problematic after inserting page break in some cases.
#188 : [IE] Objects selection were making the toolbar inactive on some situations.
+ #5314 : The aria-selected attribute was not been removed when rich combo box list items were deselected.
Updated the following language files:
- #7834 : Dutch;
Index: CKEditor/trunk/_source/plugins/listblock/plugin.js
===================================================================
--- CKEditor/trunk/_source/plugins/listblock/plugin.js (revision 6971)
+++ CKEditor/trunk/_source/plugins/listblock/plugin.js (revision 6972)
@@ -203,6 +203,12 @@
unmark : function( value )
{
- this.element.getDocument().getById( this._.items[ value ] ).removeClass( 'cke_selected' );
- this.onUnmark && this.onUnmark( this._.items[ value ] );
+ var doc = this.element.getDocument(),
+ itemId = this._.items[ value ],
+ item = doc.getById( itemId );
+
+ item.removeClass( 'cke_selected' );
+ doc.getById( itemId + '_option' ).removeAttribute( 'aria-selected' );
+
+ this.onUnmark && this.onUnmark( item );
},
@@ -214,5 +220,8 @@
for ( var value in items )
{
- doc.getById( items[ value ] ).removeClass( 'cke_selected' );
+ var itemId = items[ value ];
+
+ doc.getById( itemId ).removeClass( 'cke_selected' );
+ doc.getById( itemId + '_option' ).removeAttribute( 'aria-selected' );
}