LBF custom template (nation notes) fancybox replace.
[openemr.git] / library / custom_template / ckeditor / _source / core / dtd.js
blob127de8c1301b8cb4ae2c14339b5ac3ef09cc3e9a
1 /*
2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
4 */
6 /**
7  * @fileOverview Defines the {@link CKEDITOR.dtd} object, which holds the DTD
8  *              mapping for XHTML 1.0 Transitional. This file was automatically
9  *              generated from the file: xhtml1-transitional.dtd.
10  */
12 /**
13  * @namespace Holds and object representation of the HTML DTD to be used by the
14  * editor in its internal operations.<br />
15  * <br />
16  * Each element in the DTD is represented by a property in this object. Each
17  * property contains the list of elements that can be contained by the element.
18  * Text is represented by the "#" property.<br />
19  * <br />
20  * Several special grouping properties are also available. Their names start
21  * with the "$" character.
22  * @example
23  * // Check if "div" can be contained in a "p" element.
24  * alert( !!CKEDITOR.dtd[ 'p' ][ 'div' ] );  "false"
25  * @example
26  * // Check if "p" can be contained in a "div" element.
27  * alert( !!CKEDITOR.dtd[ 'div' ][ 'p' ] );  "true"
28  * @example
29  * // Check if "p" is a block element.
30  * alert( !!CKEDITOR.dtd.$block[ 'p' ] );  "true"
31  */
32 CKEDITOR.dtd = (function()
34         var X = CKEDITOR.tools.extend,
36                 A = {isindex:1,fieldset:1},
37                 B = {input:1,button:1,select:1,textarea:1,label:1},
38                 C = X({a:1},B),
39                 D = X({iframe:1},C),
40                 E = {hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1},
41                 F = {ins:1,del:1,script:1,style:1},
42                 G = X({b:1,acronym:1,bdo:1,'var':1,'#':1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1},F),
43                 H = X({sub:1,img:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1},G),
44                 I = X({p:1},H),
45                 J = X({iframe:1},H,B),
46                 K = {img:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,'#':1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,'var':1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1},
48                 L = X({a:1},J),
49                 M = {tr:1},
50                 N = {'#':1},
51                 O = X({param:1},K),
52                 P = X({form:1},A,D,E,I),
53                 Q = {li:1},
54                 R = {style:1,script:1},
55                 S = {base:1,link:1,meta:1,title:1},
56                 T = X(S,R),
57                 U = {head:1,body:1},
58                 V = {html:1};
60         var block = {address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1};
62         return /** @lends CKEDITOR.dtd */ {
64                 // The "$" items have been added manually.
66                 // List of elements living outside body.
67                 $nonBodyContent: X(V,U,S),
69                 /**
70                  * List of block elements, like "p" or "div".
71                  * @type Object
72                  * @example
73                  */
74                 $block : block,
76                 /**
77                  * List of block limit elements.
78                  * @type Object
79                  * @example
80                  */
81                 $blockLimit : { body:1,div:1,td:1,th:1,caption:1,form:1 },
83                 /**
84                  * List of inline (&lt;span&gt; like) elements.
85                  */
86                 $inline : L,    // Just like span.
88                 /**
89                  * list of elements that can be children at &lt;body&gt;.
90                  */
91                 $body : X({script:1,style:1}, block),
93                 $cdata : {script:1,style:1},
95                 /**
96                  * List of empty (self-closing) elements, like "br" or "img".
97                  * @type Object
98                  * @example
99                  */
100                 $empty : {area:1,base:1,br:1,col:1,hr:1,img:1,input:1,link:1,meta:1,param:1},
102                 /**
103                  * List of list item elements, like "li" or "dd".
104                  * @type Object
105                  * @example
106                  */
107                 $listItem : {dd:1,dt:1,li:1},
109                 /**
110              * List of list root elements.
111              * @type Object
112              * @example
113              */
114             $list: { ul:1,ol:1,dl:1},
116                 /**
117                  * Elements that accept text nodes, but are not possible to edit into
118                  * the browser.
119                  * @type Object
120                  * @example
121                  */
122                 $nonEditable : {applet:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,script:1,textarea:1,param:1},
124                 /**
125                  * List of elements that can be ignored if empty, like "b" or "span".
126                  * @type Object
127                  * @example
128                  */
129                 $removeEmpty : {abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1},
131                 /**
132                  * List of elements that have tabindex set to zero by default.
133                  * @type Object
134                  * @example
135                  */
136                 $tabIndex : {a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},
138                 /**
139                  * List of elements used inside the "table" element, like "tbody" or "td".
140                  * @type Object
141                  * @example
142                  */
143                 $tableContent : {caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},
145         html: U,
146         head: T,
147         style: N,
148         script: N,
149         body: P,
150         base: {},
151         link: {},
152         meta: {},
153         title: N,
154         col : {},
155         tr : {td:1,th:1},
156         img : {},
157         colgroup : {col:1},
158         noscript : P,
159         td : P,
160         br : {},
161         th : P,
162         center : P,
163         kbd : L,
164         button : X(I,E),
165         basefont : {},
166         h5 : L,
167         h4 : L,
168         samp : L,
169         h6 : L,
170         ol : Q,
171         h1 : L,
172         h3 : L,
173         option : N,
174         h2 : L,
175         form : X(A,D,E,I),
176         select : {optgroup:1,option:1},
177         font : L,
178         ins : L,
179         menu : Q,
180         abbr : L,
181         label : L,
182         table : {thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1},
183         code : L,
184         script : N,
185         tfoot : M,
186         cite : L,
187         li : P,
188         input : {},
189         iframe : P,
190         strong : L,
191         textarea : N,
192         noframes : P,
193         big : L,
194         small : L,
195         span : L,
196         hr : {},
197         dt : L,
198         sub : L,
199         optgroup : {option:1},
200         param : {},
201         bdo : L,
202         'var' : L,
203         div : P,
204         object : O,
205         sup : L,
206         dd : P,
207         strike : L,
208         area : {},
209         dir : Q,
210         map : X({area:1,form:1,p:1},A,F,E),
211         applet : O,
212         dl : {dt:1,dd:1},
213         del : L,
214         isindex : {},
215         fieldset : X({legend:1},K),
216         thead : M,
217         ul : Q,
218         acronym : L,
219         b : L,
220         a : J,
221         blockquote : P,
222         caption : L,
223         i : L,
224         u : L,
225         tbody : M,
226         s : L,
227         address : X(D,I),
228         tt : L,
229         legend : L,
230         q : L,
231         pre : X(G,C),
232         p : L,
233         em : L,
234         dfn : L
235     };
236 })();
238 // PACKAGER_RENAME( CKEDITOR.dtd )