range.mjs 278 B

123456789
  1. /**
  2. * @license
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. import { unwrapHtml } from '../../internals/html_impl';
  6. /** Safely creates a contextualFragment. */
  7. export function createContextualFragment(range, html) {
  8. return range.createContextualFragment(unwrapHtml(html));
  9. }