Skip to content

Commit

Permalink
Clarify valid URL
Browse files Browse the repository at this point in the history
The URL standard says "A URL is a universal identifier. To disambiguate from a URL string it can also be referred to as a URL record." So it's not correct to refer to this definition of "URL" for the validity requirements of an href attribute, which contains a string, not a record.

It was intended to refer to a "URL string", which is (more or less) the valid input to the URL parser.
  • Loading branch information
tstarling authored and annevk committed Feb 7, 2017
1 parent 9b121a6 commit ba265b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -6592,8 +6592,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

<h4>Terminology</h4>

<p>A <span>URL</span> is a <dfn>valid URL</dfn> if it conforms to the authoring conformance
requirements in the WHATWG URL standard. <ref spec=URL></p>
<p>A string is a <dfn>valid URL</dfn> if it is a <span>URL string</span> which conforms to
the authoring conformance requirements in the WHATWG URL standard. <ref spec=URL></p>

<p>A string is a <dfn>valid non-empty URL</dfn> if it is a <span>valid URL</span> but it is not
the empty string.</p>
Expand Down

0 comments on commit ba265b7

Please sign in to comment.