MCPcopy Index your code
hub / github.com/angular/angular / getAttributeMap

Function getAttributeMap

packages/private/testing/src/browser_utils.ts:29–37  ·  view source on GitHub ↗
(element: any)

Source from the content-addressed store, hash-verified

27}
28
29function getAttributeMap(element: any): Map<string, string> {
30 const res = new Map<string, string>();
31 const elAttrs = element.attributes;
32 for (let i = 0; i < elAttrs.length; i++) {
33 const attrib = elAttrs.item(i);
34 res.set(attrib.name, attrib.value);
35 }
36 return res;
37}
38
39const _selfClosingTags = ['br', 'hr', 'input'];
40export function stringifyElement(el: Element): string {

Callers 1

stringifyElementFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…