Changeset 412


Ignore:
Timestamp:
10/29/05 15:20:13 (14 years ago)
Author:
gogo
Message:

Apply #394

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r411 r412  
    46474647}; 
    46484648 
    4649 HTMLArea._closingTags = " head script style div span tr td tbody table em strong b i strike code cite dfn abbr acronym font a title textarea select form "; 
     4649// These are all the tags for which the end tag is not optional or  
     4650// forbidden, taken from the list at: 
     4651//   http://www.w3.org/TR/REC-html40/index/elements.html 
     4652HTMLArea._closingTags = " a abbr acronym address applet b bdo big blockquote button caption center cite code del dfn dir div dl em fieldset font form frameset h1 h2 h3 h4 h5 h6 i iframe ins kbd label legend map menu noframes noscript object ol optgroup pre q s samp script select small span strike strong style sub sup table textarea title tt u ul var "; 
     4653 
    46504654HTMLArea.needsClosingTag = function(el) { 
    46514655  return el && el.nodeType == 1 && (HTMLArea._closingTags.indexOf(" " + el.tagName.toLowerCase() + " ") != -1); 
Note: See TracChangeset for help on using the changeset viewer.