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

Function qname

static/word2md/mammoth.browser.js:26635–26648  ·  view source on GitHub ↗
(name, attribute)

Source from the content-addressed store, hash-verified

26633 }
26634
26635 function qname (name, attribute) {
26636 var i = name.indexOf(':')
26637 var qualName = i < 0 ? [ '', name ] : name.split(':')
26638 var prefix = qualName[0]
26639 var local = qualName[1]
26640
26641 // <x "xmlns"="http://foo">
26642 if (attribute && name === 'xmlns') {
26643 prefix = 'xmlns'
26644 local = ''
26645 }
26646
26647 return { prefix: prefix, local: local }
26648 }
26649
26650 function attrib (parser) {
26651 if (!parser.strict) {

Callers 2

attribFunction · 0.70
openTagFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected