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

Improve origin trustworthiness algorithm #77

Merged
merged 2 commits into from
Jan 12, 2021
Merged

Conversation

annevk
Copy link
Member

@annevk annevk commented May 18, 2020

In particular make it clear that localhost can have a trailing dot


Preview | Diff

index.html Outdated
<li data-md>
<p><var>origin</var>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/origin.html#concept-origin-host" id="ref-for-concept-origin-host①">host</a> is "<code>localhost</code>" or "<code>localhost.</code>"</p>
<li data-md>
<p><var>origin</var>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/origin.html#concept-origin-host" id="ref-for-concept-origin-host②">host</a> ends with "<code>.localhost</code>" or "<code>.localhost</code>"</p>

Choose a reason for hiding this comment

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

It looks like the compiler is removing the trailing period from the second code block here? It is supposed to be "<code>.localhost.</code>", according to the source.

(Or maybe index.html is just out of date w.r.t index.src.html?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, fixed.

In particular make it clear that localhost can have a trailing dot.
@annevk annevk force-pushed the annevk/origin-trustworthy branch from b8e55d9 to bb295a7 Compare January 12, 2021 08:30
@annevk annevk merged commit 24b4c18 into master Jan 12, 2021
@annevk annevk deleted the annevk/origin-trustworthy branch January 12, 2021 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants