Ticket #6791: 6791_4.patch
File 6791_4.patch, 675 bytes (added by , 14 years ago) |
---|
-
_source/core/editor_basic.js
98 98 // Look for the element by id. We accept any kind of element here. 99 99 element = document.getElementById( elementOrIdOrName ); 100 100 101 // Elements that should go into head are unacceptable (#6791). 102 if ( element && element.tagName.toLowerCase() in {style:1,script:1,base:1,link:1,meta:1,title:1} ) 103 element = null; 104 101 105 // If not found, look for elements by name. In this case we accept only 102 106 // textareas. 103 107 if ( !element )