From 99df8cddac84f454d146acb9f36527c8b1230ae9 Mon Sep 17 00:00:00 2001 From: ISE Hardening Date: Tue, 9 Jan 2024 02:50:30 -0800 Subject: [PATCH] No public description PiperOrigin-RevId: 596871498 --- src/dom/elements/link.ts | 1 + test/restricted/legacy_test.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dom/elements/link.ts b/src/dom/elements/link.ts index 021978bd..63d230ce 100644 --- a/src/dom/elements/link.ts +++ b/src/dom/elements/link.ts @@ -19,6 +19,7 @@ const SAFE_URL_REL_VALUES = [ 'help', 'icon', 'license', + 'modulepreload', 'next', 'prefetch', 'dns-prefetch', diff --git a/test/restricted/legacy_test.ts b/test/restricted/legacy_test.ts index e7ddf6ea..ac3c7797 100644 --- a/test/restricted/legacy_test.ts +++ b/test/restricted/legacy_test.ts @@ -1,6 +1,8 @@ -// prettier-ignore +// clang-format off import {legacyUnsafeHtml} from '../../src/restricted/legacy'; +// clang-format on + describe('legacy conversions', () => { it('safe HTML conversion with no options', () => { expect(