mirror of
https://github.com/servo/servo.git
synced 2025-09-27 15:20:09 +01:00
script: Implement trusted types for DOMParser.parseFromString
(#38872)
Part of #36258 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
4e85353472
commit
d94929dbed
5 changed files with 41 additions and 25 deletions
|
@ -17,6 +17,6 @@ enum SupportedType {
|
|||
[Exposed=Window]
|
||||
interface DOMParser {
|
||||
[Throws] constructor();
|
||||
[Throws]
|
||||
Document parseFromString(DOMString str, SupportedType type);
|
||||
[NewObject, Throws]
|
||||
Document parseFromString((TrustedHTML or DOMString) string, SupportedType type);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue