fck_xhtml10transitional.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /*
  2. * FCKeditor - The text editor for Internet - http://www.fckeditor.net
  3. * Copyright (C) 2003-2010 Frederico Caldeira Knabben
  4. *
  5. * == BEGIN LICENSE ==
  6. *
  7. * Licensed under the terms of any of the following licenses at your
  8. * choice:
  9. *
  10. * - GNU General Public License Version 2 or later (the "GPL")
  11. * http://www.gnu.org/licenses/gpl.html
  12. *
  13. * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  14. * http://www.gnu.org/licenses/lgpl.html
  15. *
  16. * - Mozilla Public License Version 1.1 or later (the "MPL")
  17. * http://www.mozilla.org/MPL/MPL-1.1.html
  18. *
  19. * == END LICENSE ==
  20. *
  21. * Contains the DTD mapping for XHTML 1.0 Transitional.
  22. * This file was automatically generated from the file: xhtml10-transitional.dtd
  23. */
  24. FCK.DTD = (function()
  25. {
  26. var X = FCKTools.Merge ;
  27. var A,L,J,M,N,O,D,H,P,K,Q,F,G,C,B,E,I ;
  28. A = {isindex:1, fieldset:1} ;
  29. B = {input:1, button:1, select:1, textarea:1, label:1} ;
  30. C = X({a:1}, B) ;
  31. D = X({iframe:1}, C) ;
  32. 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} ;
  33. F = {ins:1, del:1, script:1} ;
  34. 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) ;
  35. H = X({sub:1, img:1, object:1, sup:1, basefont:1, map:1, applet:1, font:1, big:1, small:1}, G) ;
  36. I = X({p:1}, H) ;
  37. J = X({iframe:1}, H, B) ;
  38. 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} ;
  39. L = X({a:1}, J) ;
  40. M = {tr:1} ;
  41. N = {'#':1} ;
  42. O = X({param:1}, K) ;
  43. P = X({form:1}, A, D, E, I) ;
  44. Q = {li:1} ;
  45. return {
  46. col: {},
  47. tr: {td:1, th:1},
  48. img: {},
  49. colgroup: {col:1},
  50. noscript: P,
  51. td: P,
  52. br: {},
  53. th: P,
  54. center: P,
  55. kbd: L,
  56. button: X(I, E),
  57. basefont: {},
  58. h5: L,
  59. h4: L,
  60. samp: L,
  61. h6: L,
  62. ol: Q,
  63. h1: L,
  64. h3: L,
  65. option: N,
  66. h2: L,
  67. form: X(A, D, E, I),
  68. select: {optgroup:1, option:1},
  69. font: J, // Changed from L to J (see (1))
  70. ins: P,
  71. menu: Q,
  72. abbr: L,
  73. label: L,
  74. table: {thead:1, col:1, tbody:1, tr:1, colgroup:1, caption:1, tfoot:1},
  75. code: L,
  76. script: N,
  77. tfoot: M,
  78. cite: L,
  79. li: P,
  80. input: {},
  81. iframe: P,
  82. strong: J, // Changed from L to J (see (1))
  83. textarea: N,
  84. noframes: P,
  85. big: J, // Changed from L to J (see (1))
  86. small: J, // Changed from L to J (see (1))
  87. span: J, // Changed from L to J (see (1))
  88. hr: {},
  89. dt: L,
  90. sub: J, // Changed from L to J (see (1))
  91. optgroup: {option:1},
  92. param: {},
  93. bdo: L,
  94. 'var': J, // Changed from L to J (see (1))
  95. div: P,
  96. object: O,
  97. sup: J, // Changed from L to J (see (1))
  98. dd: P,
  99. strike: J, // Changed from L to J (see (1))
  100. area: {},
  101. dir: Q,
  102. map: X({area:1, form:1, p:1}, A, F, E),
  103. applet: O,
  104. dl: {dt:1, dd:1},
  105. del: P,
  106. isindex: {},
  107. fieldset: X({legend:1}, K),
  108. thead: M,
  109. ul: Q,
  110. acronym: L,
  111. b: J, // Changed from L to J (see (1))
  112. a: J,
  113. blockquote: P,
  114. caption: L,
  115. i: J, // Changed from L to J (see (1))
  116. u: J, // Changed from L to J (see (1))
  117. tbody: M,
  118. s: L,
  119. address: X(D, I),
  120. tt: J, // Changed from L to J (see (1))
  121. legend: L,
  122. q: L,
  123. pre: X(G, C),
  124. p: L,
  125. em: J, // Changed from L to J (see (1))
  126. dfn: L
  127. } ;
  128. })() ;
  129. /*
  130. Notes:
  131. (1) According to the DTD, many elements, like <b> accept <a> elements
  132. inside of them. But, to produce better output results, we have manually
  133. changed the map to avoid breaking the links on pieces, having
  134. "<b>this is a </b><a><b>link</b> test</a>", instead of
  135. "<b>this is a <a>link</a></b><a> test</a>".
  136. */