17 lines
454 B
Text
17 lines
454 B
Text
// https://wicg.github.io/sanitizer-api/
|
|
|
|
[
|
|
Exposed=Window,
|
|
SecureContext
|
|
] interface Sanitizer {
|
|
constructor(optional SanitizerConfig sanitizerConfig = {});
|
|
DocumentFragment sanitize((DocumentFragment or Document) input);
|
|
};
|
|
|
|
dictionary SanitizerConfig {
|
|
sequence<DOMString> allowElements;
|
|
sequence<DOMString> blockElements;
|
|
sequence<DOMString> dropElements;
|
|
sequence<DOMString> allowAttributes;
|
|
sequence<DOMString> dropAttributes;
|
|
};
|