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

Fix some variable usage in navigate #2864

Merged
merged 1 commit into from Jul 29, 2017

Conversation

annevk
Copy link
Member

@annevk annevk commented Jul 24, 2017

No description provided.

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM with nit, nice catch and cleanup

@@ -82113,7 +82113,7 @@ State: <OUTPUT NAME=I>1</OUTPUT> <INPUT VALUE="Increment" TYPE=BUTTON O
<var>browsingContext</var>, and <var>reservedEnvironment</var>.</p></li>
</ol>

<p>To <dfn data-export="">process a navigate response</dfn>, given a <span
<p>To <dfn data-export="">process a navigate response</dfn>, given null or a <span
data-x="concept-request">request</span> <var>request</var>, a <span
Copy link
Member

Choose a reason for hiding this comment

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

I think I prefer "a request or null request"

Copy link
Member Author

Choose a reason for hiding this comment

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

Search for "null or" throughout Fetch. I'd rather stick with precedent unless there's a compelling reason. (I also think it's somewhat better to call out the exceptional case first, but YMMV.)

Copy link
Member

Choose a reason for hiding this comment

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

I guess I am used to programming languages or IDL where it's syntax like int? (i.e. "int or null"). But it does seem that even in HTML we have more "null or" than "or null" (in the context of type declarations, at least).

@domenic domenic merged commit fcf344c into master Jul 29, 2017
@domenic domenic deleted the annevk/process-a-navigate-response branch July 29, 2017 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants