1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

LibWeb: Introduce the concept of "Enumerated" values

This does _NOT_ correspond to anything in the IDL or ECMAScript spec,
but is a custom extended attribute.
We use it to define the "enumerated" values of an attribute
This commit is contained in:
stelar7 2023-11-05 01:48:01 +01:00 committed by Andreas Kling
parent 19bf42a7e6
commit d767f14df8
5 changed files with 22 additions and 4 deletions

View file

@ -1,8 +1,10 @@
#import <HTML/Scripting/Fetching.idl>
// https://www.w3.org/TR/SVG/interact.html#InterfaceSVGScriptElement
[Exposed=Window]
interface SVGScriptElement : SVGElement {
[Reflect] attribute DOMString type;
[Reflect=crossorigin] attribute DOMString? crossOrigin;
[Reflect=crossorigin, Enumerated=CORSSettingsAttribute] attribute DOMString? crossOrigin;
};
// FIXME: SVGScriptElement includes SVGURIReference;