Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify URL encoding for links (header+element) #9764

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -15548,9 +15548,10 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
a <span data-x="concept-request-destination">destination</span>, then return null.</p></li>

<li>
<p>Let <var>url</var> be the result of <span>encoding-parsing a URL</span> given
<var>options</var>'s <span data-x="link options href">href</span>, relative to
<var>options</var>'s <span data-x="link options base url">base URL</span>.</p>
domenic marked this conversation as resolved.
Show resolved Hide resolved
<p>Let <var>url</var> be the result of applying the <span>URL parser</span> to
<var>options</var>'s <span data-x="link options href">href</span>, with
<var>options</var>'s <span data-x="link options base url">base URL</span> and
<var>options</var>'s <span data-x="link options encoding">encoding</span>.</p>
annevk marked this conversation as resolved.
Show resolved Hide resolved
domenic marked this conversation as resolved.
Show resolved Hide resolved

<p class="XXX">Passing the base URL instead of a document or environment is tracked by <a
href="https://github.com/whatwg/html/issues/9715">issue #9715</a>.</p>
Expand Down Expand Up @@ -15648,6 +15649,9 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<dt><dfn data-x="link options base URL">base URL</dfn></dt>
<dd>A <span>URL</span></dd>

<dt><dfn data-x="link options encoding">encoding</dfn> (default <span>UTF-8</span>)</dt>
<dd>An <span>encoding</span></dd>

<dt><dfn data-x="link options origin">origin</dfn></dt>
<dd>An <span>origin</span></dd>

Expand Down Expand Up @@ -15701,6 +15705,10 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<dt><span data-x="link options base URL">base URL</span></dt>
<dd><var>document</var>'s <span>document base URL</span></dd>

<dt><span data-x="link options encoding">encoding</span></dt>
<dd><var>document</var>'s <span data-x="document's
character encoding">character encoding</span></dd>

<dt><span data-x="link options origin">origin</span></dt>
<dd><var>document</var>'s <span data-x="concept-document-origin">origin</span></dd>

Expand Down