MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / attribute

Function attribute

mini-code-edit/cm/mode/xml/xml.js:255–259  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

253 return cont(attributes);
254 }
255 function attribute(type) {
256 if (type == "equals") return cont(attvalue, attributes);
257 if (!Kludges.allowMissing) setStyle = "error";
258 return (type == "endTag" || type == "selfcloseTag") ? pass() : cont();
259 }
260 function attvalue(type) {
261 if (type == "string") return cont(attvaluemaybe);
262 if (type == "word" && Kludges.allowUnquoted) {setStyle = "string"; return cont();}

Callers

nothing calls this directly

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected