/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_bindings/webidls/DOMParser.webidl
22 строки
603 B
Tim van der Lippe
script: Implement trusted types for `DOMParser.parseFromString` (#38872)
27 авг 2025, 09:10
Не верифицирован
27 авг 2025, 09:10
d94929d
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ /* * The origin of this IDL file is * https://w3c.github.io/DOM-Parsing/#the-domparser-interface */ enum SupportedType { "text/html", "text/xml", "application/xml", "application/xhtml+xml", "image/svg+xml" }; [Exposed=Window] interface DOMParser { [Throws] constructor(); [NewObject, Throws] Document parseFromString((TrustedHTML or DOMString) string, SupportedType type); };