diff --git a/src/browser/env.zig b/src/browser/env.zig index 957577ea..41342723 100644 --- a/src/browser/env.zig +++ b/src/browser/env.zig @@ -35,7 +35,7 @@ const WebApis = struct { @import("storage/storage.zig").Interfaces, @import("url/url.zig").Interfaces, @import("xhr/xhr.zig").Interfaces, - @import("url/form_data.zig").Interfaces, + @import("xhr/form_data.zig").Interfaces, @import("xmlserializer/xmlserializer.zig").Interfaces, }); }; diff --git a/src/browser/url/form_data.zig b/src/browser/xhr/form_data.zig similarity index 99% rename from src/browser/url/form_data.zig rename to src/browser/xhr/form_data.zig index 192bfacb..f2127d6f 100644 --- a/src/browser/url/form_data.zig +++ b/src/browser/xhr/form_data.zig @@ -46,6 +46,8 @@ pub const Interfaces = .{ // This is much easier to do with an ArrayList than a HashMap, especially given // that the FormData could be mutated while iterating. // The downside is that most of the normal operations are O(N). + +// https://xhr.spec.whatwg.org/#interface-formdata pub const FormData = struct { entries: std.ArrayListUnmanaged(Entry),