Diff
Not logged in

Differences From Artifact [1274733b8e]:

To Artifact [5601d77efa]:


1
2
3
4
5




6
7
8
9
10
11
12
1
2
3


4
5
6
7
8
9
10
11
12
13
14



-
-
+
+
+
+







"use strict";
(function(F/*fossil object*/){
  /**
     A collection of HTML DOM utilities to simplify, a bit,
     using the DOM API.
     A collection of HTML DOM utilities to simplify, a bit, using the
     DOM API. It is focused on manipulation of the DOM, but one of its
     core mantras is "No innerHTML." Using innerHTML in this code, in
     particular assigning to it, is absolutely verboten.
  */
  const argsToArray = (a)=>Array.prototype.slice.call(a,0);
  const isArray = (v)=>v instanceof Array;

  const dom = {
    create: function(elemType){
      return document.createElement(elemType);