mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +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
|
@ -587,7 +587,7 @@ DOMInterfaces = {
|
|||
},
|
||||
|
||||
'ShadowRoot': {
|
||||
'canGc': ['SetHTMLUnsafe', 'SetInnerHTML', 'GetHTML', 'InnerHTML', 'AdoptedStyleSheets'],
|
||||
'canGc': ['SetHTMLUnsafe', 'SetInnerHTML', 'GetHTML', 'GetInnerHTML', 'AdoptedStyleSheets'],
|
||||
},
|
||||
|
||||
'StaticRange': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue