Example #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);
            });
        }
Example #2
0
 public void DeleteFromDocument()
 {
     CEReactions.Wrap_CEReaction(document.defaultView, () => _range?.deleteContents());
 }