MCPcopy
hub / github.com/GetmeUK/ContentTools / Tag

Function Tag

external/scripts/content-edit.js:1107–1117  ·  view source on GitHub ↗
(name, attributes)

Source from the content-addressed store, hash-verified

1105
1106 HTMLString.Tag = (function() {
1107 function Tag(name, attributes) {
1108 var k, v;
1109 this._name = name.toLowerCase();
1110 this._selfClosing = HTMLString.Tag.SELF_CLOSING[this._name] === true;
1111 this._head = null;
1112 this._attributes = {};
1113 for (k in attributes) {
1114 v = attributes[k];
1115 this._attributes[k] = v;
1116 }
1117 }
1118
1119 Tag.SELF_CLOSING = {
1120 'area': true,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected