MCPcopy Create free account
hub / github.com/UI5/webcomponents / appendAttribute

Function appendAttribute

packages/main/test/pages/diffable-html.js:2072–2080  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

2070 };
2071
2072 var appendAttribute = function (name, value) {
2073 var attribute = ' ' + name;
2074
2075 if (value.length > 0) {
2076 attribute += "=\"" + value + "\"";
2077 }
2078
2079 append(attribute);
2080 };
2081
2082 var appendAttributeOnNewLine = function (name, value, tagName) {
2083 appendLineBreak();

Callers 2

appendAttributeOnNewLineFunction · 0.85
appendAttributesFunction · 0.85

Calls 1

appendFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…