Skip to content

Commit

Permalink
Add patch for Sanitizer API
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust committed Jul 7, 2021
1 parent 4182dfe commit 22d6d87
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ed/idlpatches/sanitizer-api.idl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From ef9a45200d4ece1a7f8a29e855755742ed051d58 Mon Sep 17 00:00:00 2001
From: Francois Daoust <[email protected]>
Date: Wed, 7 Jul 2021 10:33:58 +0200
Subject: [PATCH] Rollback switch to attribute for config

https://github.com/WICG/sanitizer-api/issues/107
---
ed/idl/sanitizer-api.idl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ed/idl/sanitizer-api.idl b/ed/idl/sanitizer-api.idl
index cd6387517..75a7a6a28 100644
--- a/ed/idl/sanitizer-api.idl
+++ b/ed/idl/sanitizer-api.idl
@@ -12,8 +12,8 @@
DocumentFragment sanitize(SanitizerInput input);
DOMString sanitizeToString(SanitizerInput input);

- readonly attribute SanitizerConfig config;
- static readonly attribute SanitizerConfig defaultConfig;
+ SanitizerConfig config();
+ static SanitizerConfig defaultConfig();
};

typedef (DOMString or DocumentFragment or Document) SanitizerInput;
--
2.31.1.windows.1

0 comments on commit 22d6d87

Please sign in to comment.