Skip to content

Commit 4ac9a73

Browse files
committed
fix(core): synchronize core sanitization schema with compiler
angular#68689 recently updated the compiler schema which should be kept in sync with the core schema. Fix applied by running `pnpm bazel run //packages/core:dom_security_schema`.
1 parent 048817d commit 4ac9a73

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

packages/core/src/sanitization/dom_security_schema.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ export function SECURITY_SCHEMA(): {[k: string]: SecurityContext} {
115115
['object', ['codebase', 'data']],
116116
]);
117117

118-
// The below are for Script SVG
119-
// See: https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/href
120-
registerContext(SecurityContext.RESOURCE_URL, SVG_NAMESPACE, [
121-
['script', ['src', 'href', 'xlink:href']],
122-
]);
123-
124118
// Keep this in sync with SECURITY_SENSITIVE_ELEMENTS in packages/core/src/sanitization/sanitization.ts
125119
// The `unknown` elements refer to cases when we need to validate the input/binding in a directive (host bindings)
126120
// and the directive can be applied to multiple different elements (with different tag names). In this case we generate

0 commit comments

Comments
 (0)