MCPcopy
hub / github.com/htmlhint/HTMLHint / getMapAttrs

Method getMapAttrs

src/core/htmlparser.ts:314–326  ·  view source on GitHub ↗
(arrAttrs: Attr[])

Source from the content-addressed store, hash-verified

312 }
313
314 public getMapAttrs(arrAttrs: Attr[]): {
315 [name: string]: string
316 } {
317 const mapAttrs: { [name: string]: string } = {}
318 let attr: Attr
319
320 for (let i = 0, l = arrAttrs.length; i < l; i++) {
321 attr = arrAttrs[i]
322 mapAttrs[attr.name] = attr.value
323 }
324
325 return mapAttrs
326 }
327}

Callers 13

htmlparser.spec.jsFile · 0.80
onTagStartFunction · 0.80
onTagStartFunction · 0.80
initFunction · 0.80
onTagStartFunction · 0.80
onTagStartFunction · 0.80
initFunction · 0.80
onTagStartFunction · 0.80
initFunction · 0.80
initFunction · 0.80
onTagStartFunction · 0.80
initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected