mirror of
https://github.com/servo/servo.git
synced 2025-08-25 23:28:21 +01:00
script: mark innerHTML
as fallible in ShadowRoot
(#38565)
This is a follow-up to #38532 which simply defaulted to an empty string as the spec's WebIDL doesn't mark `innerHTML` as `Throws`. However, since the absence of `Throws` in the spec doesn't imply no-throw, we can mark this as fallible in our WebIDL. This makes the `ShadowRoot`'s implementation match `Element`'s `innerHTML`. Testing: Same as #38532. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
86d7f4c793
commit
21717158eb
3 changed files with 10 additions and 12 deletions
|
@ -29,5 +29,5 @@ partial interface ShadowRoot {
|
|||
DOMString getHTML(optional GetHTMLOptions options = {});
|
||||
|
||||
// [CEReactions] attribute (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML;
|
||||
[CEReactions] attribute [LegacyNullToEmptyString] DOMString innerHTML;
|
||||
[CEReactions, Throws] attribute [LegacyNullToEmptyString] DOMString innerHTML;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue