diff --git a/src/browser/dom/html_collection.zig b/src/browser/dom/html_collection.zig
index 34b957e2..1290c2da 100644
--- a/src/browser/dom/html_collection.zig
+++ b/src/browser/dom/html_collection.zig
@@ -286,7 +286,7 @@ const Opts = struct {
// WEB IDL https://dom.spec.whatwg.org/#htmlcollection
// HTMLCollection is re implemented in zig here because libdom
-// dom_html_collection expects a comparison function callback as arguement.
+// dom_html_collection expects a comparison function callback as argument.
// But we wanted a dynamically comparison here, according to the match tagname.
pub const HTMLCollection = struct {
matcher: Matcher,
diff --git a/src/browser/dom/node.zig b/src/browser/dom/node.zig
index b84ae9d3..a8f43a1f 100644
--- a/src/browser/dom/node.zig
+++ b/src/browser/dom/node.zig
@@ -473,7 +473,7 @@ pub const Node = struct {
// Check if the hierarchy node tree constraints are respected.
// For now, it checks only if new nodes are not self.
- // TODO implements the others contraints.
+ // TODO implements the others constraints.
// see https://dom.spec.whatwg.org/#concept-node-tree
pub fn hierarchy(self: *parser.Node, nodes: []const NodeOrText) bool {
for (nodes) |n| {
diff --git a/src/browser/dom/performance.zig b/src/browser/dom/performance.zig
index 951c8f23..f34827ab 100644
--- a/src/browser/dom/performance.zig
+++ b/src/browser/dom/performance.zig
@@ -195,7 +195,7 @@ test "Performance: now" {
}
var after = perf._now();
- while (after <= now) { // Loop untill after > now
+ while (after <= now) { // Loop until after > now
try testing.expectEqual(after, now);
after = perf._now();
}
diff --git a/src/browser/html/svg_elements.zig b/src/browser/html/svg_elements.zig
index 7c2d1964..ab14858b 100644
--- a/src/browser/html/svg_elements.zig
+++ b/src/browser/html/svg_elements.zig
@@ -25,7 +25,7 @@ pub const SVGElement = struct {
// Currently the prototype chain is not implemented (will not be returned by toInterface())
// For that we need parser.SvgElement and the derived types with tags in the v-table.
pub const prototype = *Element;
- // While this is a Node, could consider not exposing the subtype untill we have
+ // While this is a Node, could consider not exposing the subtype until we have
// a Self type to cast to.
pub const subtype = .node;
};
diff --git a/src/cdp/cdp.zig b/src/cdp/cdp.zig
index 7b6590e8..d2557d5e 100644
--- a/src/cdp/cdp.zig
+++ b/src/cdp/cdp.zig
@@ -702,7 +702,7 @@ const IsolatedWorld = struct {
// The isolate world must share at least some of the state with the related page, specifically the DocumentHTML
// (assuming grantUniveralAccess will be set to True!).
// We just created the world and the page. The page's state lives in the session, but is update on navigation.
- // This also means this pointer becomes invalid after removePage untill a new page is created.
+ // This also means this pointer becomes invalid after removePage until a new page is created.
// Currently we have only 1 page/frame and thus also only 1 state in the isolate world.
pub fn createContext(self: *IsolatedWorld, page: *Page) !void {
// if (self.executor.context != null) return error.Only1IsolatedContextSupported;
diff --git a/src/http/Client.zig b/src/http/Client.zig
index 7eb84b24..43ada88c 100644
--- a/src/http/Client.zig
+++ b/src/http/Client.zig
@@ -808,7 +808,7 @@ pub const Transfer = struct {
self.deinit();
}
- // abortAuthChallenge is called when an auth chanllenge interception is
+ // abortAuthChallenge is called when an auth challenge interception is
// abort. We don't call self.client.endTransfer here b/c it has been done
// before interception process.
pub fn abortAuthChallenge(self: *Transfer) void {
diff --git a/src/server.zig b/src/server.zig
index 97451705..1719e11d 100644
--- a/src/server.zig
+++ b/src/server.zig
@@ -487,7 +487,7 @@ pub const Client = struct {
}
// called by CDP
- // Websocket frames have a variable lenght header. For server-client,
+ // Websocket frames have a variable length header. For server-client,
// it could be anywhere from 2 to 10 bytes. Our IO.Loop doesn't have
// writev, so we need to get creative. We'll JSON serialize to a
// buffer, where the first 10 bytes are reserved. We can then backfill