From ec7151c72b9b450cdfdffa167bdf8461e77660f1 Mon Sep 17 00:00:00 2001
From: Noam Rosenthal
Date: Wed, 20 Sep 2023 15:54:17 +0300
Subject: [PATCH] Specify URL encoding for links
- Use the document encoding for link elements
- Always use UTF8 for link headers/early hints
Closes #9715
---
source | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/source b/source
index 73646634775..ee0804c4a4f 100644
--- a/source
+++ b/source
@@ -15548,9 +15548,10 @@ interface HTMLLinkElement : HTMLElement {
a destination, then return null.
- Let url be the result of encoding-parsing a URL given
- options's href, relative to
- options's base URL.
+ Let url be the result of applying the URL parser to
+ options's href, with
+ options's base URL and
+ options's encoding.
Passing the base URL instead of a document or environment is tracked by issue #9715.
@@ -15648,6 +15649,9 @@ interface HTMLLinkElement : HTMLElement {
base URL
A URL
+ encoding (default UTF-8)
+ An encoding
+
origin
An origin
@@ -15701,6 +15705,10 @@ interface HTMLLinkElement : HTMLElement {
base URL
document's document base URL
+ encoding
+ document's character encoding
+
origin
document's origin