| 257 | // For some browsers we set contenteditable="false" on anchors, making document.anchors not to include them, so we must traverse the links manually (#7893). |
| 258 | if ( CKEDITOR.plugins.link.emptyAnchorFix ) |
| 259 | { |
| 260 | var links = editor.document.getElementsByTag( 'a' ), link; |
| 261 | for ( i = 0, count = links.count(); i < count; i++ ) |
| 262 | { |
| 263 | link = links.getItem( i ); |
| 264 | if ( !link.getChildCount() && link.hasAttribute( 'name' ) ) |
| 265 | anchors.push( { name : link.getAttribute( 'name' ), id : link.getAttribute( 'id' ) } ); |
| 266 | } |
| 267 | } |
| 268 | |