comparison src/sceditor.js @ 21:2edd68951454

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 08 Aug 2022 20:03:27 -0600
parents cf42d9b17c25
children 499f38b5eeff
comparison
equal deleted inserted replaced
20:cf42d9b17c25 21:2edd68951454
5269 /* Return sanitized string or DOM */ 5269 /* Return sanitized string or DOM */
5270 if (RETURN_DOM) { 5270 if (RETURN_DOM) {
5271 if (RETURN_DOM_FRAGMENT) { 5271 if (RETURN_DOM_FRAGMENT) {
5272 //returnNode = createDocumentFragment.call(body.ownerDocument); 5272 //returnNode = createDocumentFragment.call(body.ownerDocument);
5273 // untested 5273 // untested
5274 returnNode = body.ownerDocument.createDocumentFragment.call(); 5274 returnNode = body.ownerDocument.createDocumentFragment();
5275 5275
5276 while (body.firstChild) { 5276 while (body.firstChild) {
5277 // eslint-disable-next-line unicorn/prefer-node-append 5277 // eslint-disable-next-line unicorn/prefer-node-append
5278 returnNode.appendChild(body.firstChild); 5278 returnNode.appendChild(body.firstChild);
5279 } 5279 }