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

Function parseStartTag

static/vuejs/vue.js:7504–7525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

parseHTMLFunction · 0.70

Calls 1

advanceFunction · 0.70

Tested by

no test coverage detected