/*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
{\r
div : function( element )\r
{\r
- var style = element.attributes.style,\r
+ var attributes = element.attributes,\r
+ style = attributes && attributes.style,\r
child = style && element.children.length == 1 && element.children[ 0 ],\r
childStyle = child && ( child.name == 'span' ) && child.attributes.style;\r
\r