Skip to content

Commit fcc74b6

Browse files
committed
correct comment
1 parent d7155e6 commit fcc74b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/html/elements.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub const HTMLAnchorElement = struct {
274274
fn url(self: *parser.Anchor, page: *Page) !URL {
275275
// Although the URL.constructor union accepts an .{.element = X}, we
276276
// can't use this here because the behavior is different.
277-
// new URL(document.createElement('a')
277+
// URL.constructor(document.createElement('a')
278278
// should fail (a.href isn't a valid URL)
279279
// But
280280
// document.createElement('a').host

0 commit comments

Comments
 (0)