This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* el(tag, options[, innerHTML]) | |
* Creates an HTMLElement object | |
* and fills it with various attributes and properties. | |
* Inspired by React's `React.createElement()` function | |
* | |
* @param string tag The element's tagname, such as P, DIV, etc. | |
* @param object options | |
* An object that can contain key-value pairs of attributes such as | |
* "aria-label", "itemtype", "disabled", etc. |