Skip to content

Commit 20ffc95

Browse files
authored
chore(): webpack does not some local variables (ionic-team#19458)
fixes ionic-team#19442
1 parent b4d92c6 commit 20ffc95

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/src/utils/sanitization/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ export const sanitizeDOMString = (untrustedString: string | undefined): string |
5252
*/
5353

5454
// IE does not support .children on document fragments, only .childNodes
55-
const documentFragmentChildren = getElementChildren(documentFragment);
55+
const dfChildren = getElementChildren(documentFragment);
5656

5757
/* tslint:disable-next-line */
58-
for (let childIndex = 0; childIndex < documentFragmentChildren.length; childIndex++) {
59-
sanitizeElement(documentFragmentChildren[childIndex]);
58+
for (let childIndex = 0; childIndex < dfChildren.length; childIndex++) {
59+
sanitizeElement(dfChildren[childIndex]);
6060
}
6161

6262
// Append document fragment to div
@@ -118,8 +118,8 @@ const sanitizeElement = (element: any) => {
118118
* IE doesn't always support .children
119119
* so we revert to .childNodes instead
120120
*/
121-
const getElementChildren = (element: any) => {
122-
return (element.children != null) ? element.children : element.childNodes;
121+
const getElementChildren = (el: any) => {
122+
return (el.children != null) ? el.children : el.childNodes;
123123
};
124124

125125
const allowedAttributes = ['class', 'id', 'href', 'src', 'name', 'slot'];

0 commit comments

Comments
 (0)