Ejemplo n.º 1
0
        public void append(params object[] nodes)
        {
            CEReactions.Wrap_CEReaction(nodeDocument.defaultView, () =>
            {
                if (nodes.Any(c => !(c is Node) && !(c is string)))
                {
                    throw new TypeError("Only Node and string types are accepted types.");
                }

                var node = Dom_convert_nodes_into_node(ownerDocument, nodes);
                appendChild(node);
            });
        }
Ejemplo n.º 2
0
 public void DeleteFromDocument()
 {
     CEReactions.Wrap_CEReaction(document.defaultView, () => _range?.deleteContents());
 }