mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
correct comment
This commit is contained in:
@@ -274,7 +274,7 @@ pub const HTMLAnchorElement = struct {
|
|||||||
fn url(self: *parser.Anchor, page: *Page) !URL {
|
fn url(self: *parser.Anchor, page: *Page) !URL {
|
||||||
// Although the URL.constructor union accepts an .{.element = X}, we
|
// Although the URL.constructor union accepts an .{.element = X}, we
|
||||||
// can't use this here because the behavior is different.
|
// 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)
|
// should fail (a.href isn't a valid URL)
|
||||||
// But
|
// But
|
||||||
// document.createElement('a').host
|
// document.createElement('a').host
|
||||||
|
|||||||
Reference in New Issue
Block a user