MCPcopy Create free account
hub / github.com/TruthHun/BookStack / parseStartTag

Function parseStartTag

static/vuejs/vue.esm.js:7508–7529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7506 }
7507
7508 function parseStartTag () {
7509 var start = html.match(startTagOpen);
7510 if (start) {
7511 var match = {
7512 tagName: start[1],
7513 attrs: [],
7514 start: index
7515 };
7516 advance(start[0].length);
7517 var end, attr;
7518 while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {
7519 advance(attr[0].length);
7520 match.attrs.push(attr);
7521 }
7522 if (end) {
7523 match.unarySlash = end[1];
7524 advance(end[0].length);
7525 match.end = index;
7526 return match
7527 }
7528 }
7529 }
7530
7531 function handleStartTag (match) {
7532 var tagName = match.tagName;

Callers 1

parseHTMLFunction · 0.70

Calls 1

advanceFunction · 0.70

Tested by

no test coverage detected