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

Editorial: add <div algorithm> wrappers to Header class #1596

Merged
merged 1 commit into from Jan 26, 2023

Conversation

dlrobertson
Copy link
Member

@dlrobertson dlrobertson commented Jan 25, 2023

Related to: #1526


Preview | Diff

fetch.bs Outdated
<p>The <dfn export for=Headers method><code>delete(<var>name</var>)</code></dfn> method steps are:
<div algorithm>
<p>The <dfn export for=Headers method><code>delete(<var>name</var>)</code></dfn> method
from a {{Headers}} object (<var>headers</var>), run these steps:
Copy link
Member

Choose a reason for hiding this comment

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

You found a bug, nice! The fix is replacing headers below with <a>this</a>. This can stay as-is. I suppose the same applies to set() below.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah! Good point. Originally I thought this would be like remove privileged no-CORS request-headers, but it makes sense that we'd use this for these methods.

Copy link
Member Author

@dlrobertson dlrobertson left a comment

Choose a reason for hiding this comment

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

Thanks for the review! I'll try to update this evening.

fetch.bs Outdated
<p>The <dfn export for=Headers method><code>delete(<var>name</var>)</code></dfn> method steps are:
<div algorithm>
<p>The <dfn export for=Headers method><code>delete(<var>name</var>)</code></dfn> method
from a {{Headers}} object (<var>headers</var>), run these steps:
Copy link
Member Author

Choose a reason for hiding this comment

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

Ah! Good point. Originally I thought this would be like remove privileged no-CORS request-headers, but it makes sense that we'd use this for these methods.

@dlrobertson
Copy link
Member Author

Updated to use this in the methods.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

\o/

@annevk annevk merged commit 093c622 into whatwg:main Jan 26, 2023
@dlrobertson dlrobertson deleted the div-alg branch January 26, 2023 15:26
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.

None yet

2 participants