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

Function stringifyRNodeAttrs

packages/core/src/hydration/error_handling.ts:273–281  ·  view source on GitHub ↗

* Stringifies an HTML Element's attributes * * @param rNode an HTML Element * @returns string

(rNode: HTMLElement)

Source from the content-addressed store, hash-verified

271 * @returns string
272 */
273function stringifyRNodeAttrs(rNode: HTMLElement): string {
274 const results = [];
275 for (let i = 0; i < rNode.attributes.length; i++) {
276 const attr = rNode.attributes[i];
277 if (internalAttrs.has(attr.name)) continue;
278 results.push(`${attr.name}="${shorten(attr.value)}"`);
279 }
280 return results.join(' ');
281}
282
283// Methods for Describing the DOM
284

Callers 1

describeRNodeFunction · 0.85

Calls 4

shortenFunction · 0.85
hasMethod · 0.65
joinMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…