X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fdtd.js;h=970a16a0fc5c0e8be972f749a2725cd0081bf581;hb=1056598c95187351dc58f4991d331e2258d038b5;hp=d5af5bfaa3df35c94d82c15846c84a078446d2f3;hpb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;p=ckeditor.git diff --git a/_source/core/dtd.js b/_source/core/dtd.js index d5af5bf..970a16a 100644 --- a/_source/core/dtd.js +++ b/_source/core/dtd.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -10,16 +10,15 @@ For licensing, see LICENSE.html or http://ckeditor.com/license */ /** - * Holds and object representation of the HTML DTD to be used by the editor in - * its internal operations. - * - * Each element in the DTD is represented by a - * property in this object. Each property contains the list of elements that - * can be contained by the element. Text is represented by the "#" property. - * + * @namespace Holds and object representation of the HTML DTD to be used by the + * editor in its internal operations.
+ *
+ * Each element in the DTD is represented by a property in this object. Each + * property contains the list of elements that can be contained by the element. + * Text is represented by the "#" property.
+ *
* Several special grouping properties are also available. Their names start * with the "$" character. - * @namespace * @example * // Check if "div" can be contained in a "p" element. * alert( !!CKEDITOR.dtd[ 'p' ][ 'div' ] ); "false" @@ -81,8 +80,14 @@ CKEDITOR.dtd = (function() */ $blockLimit : { body:1,div:1,td:1,th:1,caption:1,form:1 }, + /** + * List of inline (<span> like) elements. + */ $inline : L, // Just like span. + /** + * list of elements that can be children at <body>. + */ $body : X({script:1,style:1}, block), $cdata : {script:1,style:1}, @@ -176,7 +181,6 @@ CKEDITOR.dtd = (function() label : L, table : {thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1}, code : L, - script : N, tfoot : M, cite : L, li : P,