We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7155e6 commit fcc74b6Copy full SHA for fcc74b6
src/browser/html/elements.zig
@@ -274,7 +274,7 @@ pub const HTMLAnchorElement = struct {
274
fn url(self: *parser.Anchor, page: *Page) !URL {
275
// Although the URL.constructor union accepts an .{.element = X}, we
276
// can't use this here because the behavior is different.
277
- // new URL(document.createElement('a')
+ // URL.constructor(document.createElement('a')
278
// should fail (a.href isn't a valid URL)
279
// But
280
// document.createElement('a').host
0 commit comments