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

docs: fix typos, add missing words, correct case, improve code samples, &c. #7114

Merged
merged 5 commits into from
Jan 13, 2022
Merged

Conversation

j9t
Copy link
Contributor

@j9t j9t commented Sep 24, 2021

  • Fixed typos (“more complication situations”)
  • Added missing words (“…as”, “the”)
  • Corrected case (“subject line”)
  • Expanded abbreviations to aid understanding (“processing instructions”)
  • Made code samples consistent
  • Closed example code
  • Removed “obviously” to aid tone and helpfulness
  • Added space between key modifiers (for clarity)

(As chapter 4 is pretty large I’m submitting this PR now to continue with more edits for this chapter in a separate branch and PR.)


/grouping-content.html ( diff )
/interaction.html ( diff )
/sections.html ( diff )
/semantics.html ( diff )
/text-level-semantics.html ( diff )


/grouping-content.html ( diff )
/interaction.html ( diff )
/sections.html ( diff )
/semantics.html ( diff )
/text-level-semantics.html ( diff )

* Corrected case (“subject line”)
* Added missing words (“…as”)
* Expanded abbreviations to aid understanding (“processing instructions”)
* Made code samples consistent
* Added space between key modifiers (for clarity)

Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
* Fixed typos (“more complication situations”, missing article)
* Closed example code
* Removed “obviously” to aid tone and helpfulness

Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
source Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Show resolved Hide resolved
source Outdated
@@ -18648,7 +18649,8 @@ interface <dfn interface>HTMLQuoteElement</dfn> : <span>HTMLElement</span> {
&lt;blockquote cite="https://quotes.example.org/s/sonnet130.html">
&lt;p>My mistress' eyes are nothing like the sun,&lt;br>
Coral is far more red, than her lips red,&lt;br>
...</code></pre>
...&lt;/p>
&lt;/blockquote></code></pre>
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'd prefer leaving this as-is, although I could see using … instead. Note that this happens further down as well in <p>We shall now discuss these points... and you did not change it there. And I think it might end up being confusing if changed there and perhaps it's here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I missed the other place. Would it work for you if we change it there, too? As blockquote has no optional end tag I believe this sets a better example.

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 the problem is that it ends up being unclear whether the elided text is part of the example or not.

Copy link
Member

Choose a reason for hiding this comment

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

With this reverted I'd be okay with merging this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don’t feel this makes the example itself less clear, but if this is something we want to rule out, how about shortening the example then?

<p>His next piece was the aptly named <cite>Sonnet 130</cite>:</p>
<blockquote cite="https://quotes.example.org/s/sonnet130.html">…</blockquote>

This would be well-formed and valid and make the example more concise.

Copy link
Member

Choose a reason for hiding this comment

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

I prefer the current setup. If you feel strongly we could wait for @domenic to make a decision.

Copy link
Contributor Author

@j9t j9t Sep 29, 2021

Choose a reason for hiding this comment

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

I thought about this and I believe here’s the problem, here’s what rubs me: We truncate these examples like it was prose. What I think makes the examples better in a technical doc is not truncating like it was prose, but truncating like it was code.

We can still truncate the prose in the code, but by making a distinction between copy and code we can make the examples more clear, by not omitting possibly important technical detail. In this case, as mentioned originally, not inadvertently suggesting that </blockquote> was optional.

(I just updated the other example (“He began his list of "lessons"…”), too, though I’d file the problem there under consistency, not under problematic truncating.)

Copy link
Member

Choose a reason for hiding this comment

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

Unless @domenic feels otherwise I continue to think we should leave this unchanged.

Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
@j9t
Copy link
Contributor Author

j9t commented Sep 27, 2021

Thanks @annevk. Took care of further edits or responded.

Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
@j9t
Copy link
Contributor Author

j9t commented Jan 10, 2022

@annevk, @domenic, is there someone to complete the review of this PR?

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.

Apart from three bits this looks okay to me. Perhaps you can split those out into a separate PR.

source Outdated
Comment on lines 15660 to 15663
<p class="XXX">It is expected that counterparts to the above rules also apply to
<code>&lt;?xml-stylesheet?></code> PIs and HTTP `<code data-x="http-link">Link</code>` headers.
However, this has not yet been thoroughly investigated.</p>
<code>&lt;?xml-stylesheet?></code> processing instructions and HTTP `<code
data-x="http-link">Link</code>` headers. However, this has not yet been
thoroughly investigated.</p>
Copy link
Member

Choose a reason for hiding this comment

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

I hadn't noticed this before, but since this is a XXX we should leave it unchanged. This is aimed at people who know what PI means.

source Outdated
@@ -18648,7 +18649,8 @@ interface <dfn interface>HTMLQuoteElement</dfn> : <span>HTMLElement</span> {
&lt;blockquote cite="https://quotes.example.org/s/sonnet130.html">
&lt;p>My mistress' eyes are nothing like the sun,&lt;br>
Coral is far more red, than her lips red,&lt;br>
...</code></pre>
...&lt;/p>
&lt;/blockquote></code></pre>
Copy link
Member

Choose a reason for hiding this comment

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

Unless @domenic feels otherwise I continue to think we should leave this unchanged.

source Outdated
@@ -18711,7 +18713,7 @@ be conceded to have merits.&lt;/blockquote>
&lt;blockquote>Finally, one should be prepared for the threat
of breakdown in negotiations at any given moment and not
be cowed by the possibility.&lt;/blockquote>
&lt;p>We shall now discuss these points...</code></pre>
&lt;p>We shall now discuss these points...&lt;/p></code></pre>
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should change this either.

@j9t
Copy link
Contributor Author

j9t commented Jan 12, 2022

Thanks @annevk!

As mentioned in October, I don’t have the bandwidth anymore to work on this. Feel free to cherry-pick from this and other open PRs and issues.

A personal note, I didn’t feel that proactive contributions were welcome (not targeted at you, quite the contrary—an unemotional observation). I understand that proactiveness is also a risk, that the work may for good and bad reasons not be considered. However, if contributor work is left without comment for months, risking that work to be for naught and yet indirectly setting the expectation that contributors need to be on stand-by for an indefinite period of time, it seems to show little respect and appreciation for the work that contributors put in. (I know that from a Google perspective, we typically try to avoid such an experience.)

Maybe this feedback can be considered at any time there’s attention on improving the contributor experience.

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.

That's totally fair, but unfortunately we don't have the resources of Google. At the end of the day it's just a couple of people that need to balance many conflicting priorities.

@annevk annevk merged commit 0909fda into whatwg:main Jan 13, 2022
@Kaleidea
Copy link

I didn’t feel that proactive contributions were welcome (not targeted at you, quite the contrary—an unemotional observation).
[...] it seems to show little respect and appreciation for the work that contributors put in.

@j9t I concur with your observation and go a bit further. The background: I've spent a few weeks drafting a specification and even implementing it in browsers, yet my work was ignored and rejected in hurtful ways. What I've experienced was not a resource issue as I've done the editors' job and more, but instead, I see a cultural issue of lack of openness and appreciation. That is contrary to the WHATWG principles and I wonder how this could be improved.

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

3 participants