Ticket #6804: 6804.patch
File 6804.patch, 953 bytes (added by , 13 years ago) |
---|
-
_source/core/dom/elementpath.js
6 6 (function() 7 7 { 8 8 // Elements that may be considered the "Block boundary" in an element path. 9 var pathBlockElements = { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1 };9 var pathBlockElements = { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1, legend:1 }; 10 10 11 11 // Elements that may be considered the "Block limit" in an element path. 12 var pathBlockLimitElements = { body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1 };12 var pathBlockLimitElements = { body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1,fieldset:1 }; 13 13 14 14 // Check if an element contains any block element. 15 15 var checkHasBlock = function( element )