MCPcopy
hub / github.com/layui/layui / manipulationTarget

Function manipulationTarget

src/modules/jquery.js:5875–5884  ·  view source on GitHub ↗
(elem, content)

Source from the content-addressed store, hash-verified

5873
5874 // Prefer a tbody over its parent table for containing new rows
5875 function manipulationTarget(elem, content) {
5876 if (
5877 nodeName(elem, 'table') &&
5878 nodeName(content.nodeType !== 11 ? content : content.firstChild, 'tr')
5879 ) {
5880 return jQuery(elem).children('tbody')[0] || elem;
5881 }
5882
5883 return elem;
5884 }
5885
5886 // Replace/restore the type attribute of script elements for safe DOM manipulation
5887 function disableScript(elem) {

Callers 1

jquery.jsFile · 0.85

Calls 2

nodeNameFunction · 0.85
jQueryFunction · 0.85

Tested by

no test coverage detected