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

Function parseStartTag

static/vuejs/vue.common.js:7510–7531  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

parseHTMLFunction · 0.70

Calls 1

advanceFunction · 0.70

Tested by

no test coverage detected