correct comment

This commit is contained in:
Karl Seguin
2025-07-04 23:17:48 +08:00
parent d7155e6662
commit fcc74b63d3

View File

@@ -274,7 +274,7 @@ pub const HTMLAnchorElement = struct {
fn url(self: *parser.Anchor, page: *Page) !URL {
// Although the URL.constructor union accepts an .{.element = X}, we
// can't use this here because the behavior is different.
// new URL(document.createElement('a')
// URL.constructor(document.createElement('a')
// should fail (a.href isn't a valid URL)
// But
// document.createElement('a').host