Skip to content

Conversation

@TimvdLippe
Copy link
Contributor

@TimvdLippe TimvdLippe commented Oct 6, 2025

The destination field in link options is initialized to the empty string
and can no longer be nullable. Therefore the null check is no longer
valid, since the destination is always set to a non-null value. Secondly,
we already initialize to the empty string and therefore don't need
to reassign the value to the empty string during prefetch loading.

(This is a follow-up to #11727 and as such doesn't use the template either.)


/links.html ( diff )
/semantics.html ( diff )

The destination field in link options is initialized to the empty string
and can no longer be nullable. Therefore the null check is no longer
valid, since the destination is always set to a non-null value. Secondly,
we already initialize to the empty string and therefore don't need
to reassign the value to the empty string during prefetch loading.
Copy link
Collaborator

@noamr noamr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for working on this.

@TimvdLippe
Copy link
Contributor Author

@annevk can you help me figure out what else I need to do to land this? Not sure who I should reach out to for approvals.

@annevk annevk merged commit dd759db into whatwg:main Oct 10, 2025
2 checks passed
@annevk
Copy link
Member

annevk commented Oct 10, 2025

Thanks Tim!

@TimvdLippe TimvdLippe deleted the handle-destination-as-empty-string branch October 10, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants