}\r
}\r
\r
- // Modify the table headers. Depends on havint rows and cols generated\r
+ // Modify the table headers. Depends on having rows and cols generated\r
// correctly so it can't be done in commit functions.\r
\r
// Should we make a <thead>?\r
if ( th.type == CKEDITOR.NODE_ELEMENT )\r
{\r
th.renameNode( 'th' );\r
- if ( !i )\r
- th.setAttribute( 'scope', 'col' );\r
+ th.setAttribute( 'scope', 'col' );\r
}\r
}\r
thead.append( theRow.remove() );\r
{\r
newCell = new CKEDITOR.dom.element( table.$.rows[ row ].cells[ 0 ] );\r
newCell.renameNode( 'th' );\r
- newCell.setAttribute( 'scope', 'col' );\r
+ newCell.setAttribute( 'scope', 'row' );\r
}\r
}\r
\r
if ( row.getParent().getName() == 'tbody' )\r
{\r
newCell = new CKEDITOR.dom.element( row.$.cells[0] );\r
- newCell.renameNode( 'td');\r
+ newCell.renameNode( 'td' );\r
newCell.removeAttribute( 'scope' );\r
}\r
}\r