فهرست منبع

LibWeb: Add IDL enum for lazy loading attribute

Jamie Mansfield 1 سال پیش
والد
کامیت
c484625631
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl

+ 7 - 0
Userland/Libraries/LibWeb/HTML/Scripting/Fetching.idl

@@ -4,3 +4,10 @@ enum CORSSettingsAttribute {
     "anonymous",
     "anonymous",
     "use-credentials"
     "use-credentials"
 };
 };
+
+// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#lazy-loading-attribute
+[MissingValueDefault=eager, InvalidValueDefault=eager]
+enum LazyLoadingAttribute {
+    "lazy",
+    "eager"
+};