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

replace repetitions #3185

Merged
merged 4 commits into from
Nov 14, 2017
Merged

replace repetitions #3185

merged 4 commits into from
Nov 14, 2017

Conversation

sam0410
Copy link
Contributor

@sam0410 sam0410 commented Nov 1, 2017

No description provided.

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.

Thanks! I'm a little bit concerned about the number of nits I found given the size of the diff. Someone else should probably do another pass once you fixed these nits to be sure nothing is missed.

source Outdated
@@ -27481,7 +27480,7 @@ was an English &lt;a href="/wiki/Music_hall">music hall&lt;/a> singer, ...</pre>
<li><p><span>Update the source set</span> for <var>el</var>.</p></li>

<li><p>If <var>el</var>'s <span>source set</span> is empty,
return null as the URL and undefined as the pixel density and abort these steps.</p></li>
return null as the URL and undefined as the pixel density and return.</p></li>
Copy link
Member

Choose a reason for hiding this comment

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

This does not make sense.

source Outdated
@@ -27619,7 +27618,7 @@ was an English &lt;a href="/wiki/Music_hall">music hall&lt;/a> singer, ...</pre>
data-x="concept-microsyntax-parse-error">parse error</span>.</p></li>

<li><p>If <var>position</var> is past the end of <var>input</var>,
return <var>candidates</var> and abort these steps.</p></li>
return <var>candidates</var> and return.</p></li>
Copy link
Member

Choose a reason for hiding this comment

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

Same problem here.

source Outdated
@@ -34638,7 +34637,7 @@ interface <dfn>MediaError</dfn> {
not null and its <span data-x="concept-MediaError-code">code</span> is <code
data-x="dom-MediaError-MEDIA_ERR_SRC_NOT_SUPPORTED">MEDIA_ERR_SRC_NOT_SUPPORTED</code>, return a
promise rejected with a <span>"<code>NotSupportedError</code>"</span> <code>DOMException</code>
and abort these steps.</p>
and return.</p>
Copy link
Member

Choose a reason for hiding this comment

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

return and return again

source Outdated

</li>

<li>

<p>Otherwise, if <var>objects</var> has only one element, return that element and
abort these steps.</p>
return.</p>
Copy link
Member

Choose a reason for hiding this comment

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

return and return

source Outdated
@@ -78518,14 +78507,14 @@ callback <dfn>FrameRequestCallback</dfn> = void (<span>DOMHighResTimeStamp</span
<p>If <var>objects</var> contains a <span>nested browsing context</span>, then return
the <code>WindowProxy</code> object of the <span>nested browsing context</span> corresponding to
the first <span>browsing context container</span> in <span>tree order</span> whose
<span>nested browsing context</span> is in <var>objects</var>, and abort these steps.</p>
<span>nested browsing context</span> is in <var>objects</var>, and return.</p>
Copy link
Member

Choose a reason for hiding this comment

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

return and return

source Outdated
@@ -87278,11 +87265,11 @@ interface <dfn>NavigatorOnLine</dfn> {

<li><p>If the <span data-x="concept-settings-object-global">global object</span> specified by
<var>settings</var> is a <code>Window</code> object whose <code>Document</code> object is not
<span>fully active</span>, then return "do not run" and abort these steps.</p>
<span>fully active</span>, then return "do not run" and return.</p>
Copy link
Member

Choose a reason for hiding this comment

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

return and return

source Outdated
@@ -100422,7 +100406,7 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
resource other than the resource's contents, including the address of the resource. If
autodetection succeeds in determining a character encoding, and that encoding is a supported
encoding, then return that encoding, with the <span
data-x="concept-encoding-confidence">confidence</span> <i>tentative</i>, and abort these steps.
data-x="concept-encoding-confidence">confidence</span> <i>tentative</i>, and return.
Copy link
Member

Choose a reason for hiding this comment

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

return and return

source Outdated
@@ -100361,7 +100345,7 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

<li><p>If the transport layer specifies a character encoding, and it is supported, return that
encoding with the <span data-x="concept-encoding-confidence">confidence</span> <i>certain</i>, and
abort these steps.</p></li>
return.</p></li>
Copy link
Member

Choose a reason for hiding this comment

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

return and return

source Outdated
@@ -100335,7 +100319,7 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

<p>If the user has explicitly instructed the user agent to override the document's character
encoding with a specific encoding, optionally return that encoding with the <span
data-x="concept-encoding-confidence">confidence</span> <i>certain</i> and abort these steps.</p>
data-x="concept-encoding-confidence">confidence</span> <i>certain</i> and return.</p>
Copy link
Member

Choose a reason for hiding this comment

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

return and return

source Outdated
@@ -98313,7 +98297,7 @@ interface <dfn>WindowLocalStorage</dfn> {
<ol>

<li><p>The user agent may throw a <span>"<code>SecurityError</code>"</span>
<code>DOMException</code> and abort these steps instead of returning a <code>Storage</code>
<code>DOMException</code> and return instead of returning a <code>Storage</code>
Copy link
Member

Choose a reason for hiding this comment

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

throw and return

Copy link

@TejasQ TejasQ left a comment

Choose a reason for hiding this comment

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

LGTM

@annevk
Copy link
Member

annevk commented Nov 6, 2017

@zcorpan @domenic @foolip could one of you do a final pass here?

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.

Found a few missing ones and a few that could be phrased a bit better, and tweaked them. I don't think this can close the original issue entirely as a lot of "abort these steps" remain that should still be replaced, probably because they were split over two lines and thus missed by the regex @sam0410 was using. But we should go ahead and merge this now, I think.

@annevk annevk merged commit 7ebc44a into whatwg:master Nov 14, 2017
@annevk
Copy link
Member

annevk commented Nov 14, 2017

Thanks @sam0410!

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

4 participants