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

Better HTML #52

Merged
merged 29 commits into from
Dec 2, 2024
Merged

Better HTML #52

merged 29 commits into from
Dec 2, 2024

Conversation

domel
Copy link
Contributor

@domel domel commented Nov 1, 2024

This PR addresses several HTML structure and semantic issues to improve accessibility, maintainability, and adherence to best practices. The following corrections were implemented:

  • Tables used in a non-semantic way: Replaced tables that were previously used solely for layout purposes with CSS styling. This change ensures that tables are used strictly for tabular data, enhancing semantic integrity and improving screen reader compatibility.
  • Missing essential HTML elements: Added essential structural elements.
  • Redundant HTML tags: Removed any duplicate or unnecessary HTML tags, streamlining the HTML structure. This cleanup reduces code complexity and improves performance by minimizing DOM size.
  • Small fixes.

See #51


Preview | Diff

domel added 2 commits November 1, 2024 14:09
- remove unnecessary HTML elements
- not-table content now does not use tables
- add semantic elements
- modify to be valid HTML5
em elements
@domel domel requested review from gkellogg and doerthe November 1, 2024 13:51
@TallTed
Copy link
Member

TallTed commented Nov 1, 2024

This is very difficult to review. So many changes, touching most if not every line! It would be somewhat easier to review if each bullet point were its own commit ... but still not easily done.

@domel
Copy link
Contributor Author

domel commented Nov 1, 2024

The changes are not that big, it's just that diff can't show it.

@pfps
Copy link
Contributor

pfps commented Nov 1, 2024

As far as I can tell the changes are very big. Perhaps part of the changes are changing whitespace. But there is also the movement of

markup to separate lines, which doesn't seem to be mentioned in the summary of the change. In my opinion it would have been better to not have the formatting changes.

@domel
Copy link
Contributor Author

domel commented Nov 1, 2024

Yes, most of these changes are extra spaces or deleted spaces. To properly understand and improve the document, I first had to clean up the indentation. My editor does this automatically.

@domel
Copy link
Contributor Author

domel commented Nov 1, 2024

It's a bit of a stretch to say the changes are big when nothing has changed in terms of content.

@niklasl
Copy link

niklasl commented Nov 1, 2024

I found it easier to view the changes by using the "Hide whitespace" checkbox (then "Apply and reload"). (Finding it may be harder; click the "gear" button under the "Files changed" tab.)

@TallTed
Copy link
Member

TallTed commented Nov 1, 2024

Including whitespace, GitHub indicates 3,864 lines were changed.

Excluding whitespace, GitHub indicates 1,940 lines were changed. (I do note that GitHub doesn't treat linefeed addition/deletion as whitespace changes.)

Even if only one character was changed on each of those lines, and even if those changes were only to markup (e.g., fixing an </a> that should have been </p>), I certainly consider the net effect of this PR to be a large change.

@domel
Copy link
Contributor Author

domel commented Nov 1, 2024

@TallTed These single-character changes most often involve changing a single letter, e.g. the graph G, to <em>G</em>. There are a lot of such letters, so there are a lot of edits.

@TallTed
Copy link
Member

TallTed commented Nov 1, 2024

There are a lot of such letters, so there are a lot of edits.

Yes. And they are hard to review, all at once, all of a piece.

They would be easier to review if there were many commits contained within this PR, e.g., "change all graph G to graph <em>G</em>".

Reviewing commit-by-commit would be FAR easier than reviewing all-at-once, which is the only current option.

Copy link
Member

@gkellogg gkellogg left a comment

Choose a reason for hiding this comment

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

The nature of source formatting changes is that it can change a lot of lines. But, looking at it with the "ignore whitespace" option, and in the HTML Diff, it's clear that the changes are limited to formatting.

Note that this will collide with other open pull requests. We should probably merge those first, rebase this PR on that, and then merge this.

@domel
Copy link
Contributor Author

domel commented Nov 1, 2024

Well, it could have been devided, but I treated everything that is not semantic as one PR. On the other hand, I don't fully understand what the difference is in checking time 5*20% and 100%. Yes, it's a big PR because the current specification document is/was in a terrible state.

@gkellogg
Copy link
Member

gkellogg commented Nov 1, 2024

The build error may indicate some underling issue, but a ReSpec problem prevents it from being displayed; or, it may just be a ReSpec issue itself.

spec/index.html Outdated
Comment on lines 513 to 514
<p>If <em>E</em> is a ground RDF graph, then <em>I(E) = false</em> if <em>I(E')</em> =
false for some triple <em>E'</em> in <em>E</em>, otherwise <em>I(E) = true</em>.
Copy link
Member

@TallTed TallTed Nov 1, 2024

Choose a reason for hiding this comment

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

GitHub fails to highlight my suggested changes. Please use your preferred diff tool.

Suggested change
<p>If <em>E</em> is a ground RDF graph, then <em>I(E) = false</em> if <em>I(E')</em> =
false for some triple <em>E'</em> in <em>E</em>, otherwise <em>I(E) = true</em>.
<p>If <em>E</em> is a ground RDF graph and <em>I(E') = false</em>
for some triple <em>E'</em> in <em>E</em>, then
<em>I(E) = false</em>; otherwise, <em>I(E) = true</em>.

spec/index.html Outdated Show resolved Hide resolved
spec/index.html Outdated Show resolved Hide resolved
@domel
Copy link
Contributor Author

domel commented Nov 2, 2024

@TallTed Thanks for pointing out a few <em>s. I found some more. Also, I actually forgot about <code> vs. <pre>. That's fixed too. You can take a look again.

@domel domel requested a review from TallTed November 2, 2024 10:05
spec/index.html Outdated Show resolved Hide resolved
spec/index.html Outdated Show resolved Hide resolved
spec/index.html Outdated Show resolved Hide resolved
spec/index.html Outdated Show resolved Hide resolved
spec/index.html Outdated Show resolved Hide resolved
spec/index.html Outdated Show resolved Hide resolved
spec/index.html Outdated Show resolved Hide resolved
@gkellogg
Copy link
Member

gkellogg commented Nov 4, 2024

@gkellogg Is this a ReSpec issue, or has something in the structure been accidentally changed that is inconsistent with ReSpec recommendations?

I believe the ReSpec issue is in reporting the underlying error. It does not error in the same way on the main branch. But, it could still be entirely a ReSpec internal thing. I'm hoping they can address/fix this one quickly.

add yet another em
@domel domel added the spec:editorial Minor change in the specification (markup, typo, informative text; class 1 or 2) label Nov 4, 2024
@pfps
Copy link
Contributor

pfps commented Nov 20, 2024

Closing, finally, as will not be done

@pfps pfps closed this Nov 20, 2024
@domel
Copy link
Contributor Author

domel commented Nov 20, 2024

@pfps?

@domel domel reopened this Nov 20, 2024
@domel
Copy link
Contributor Author

domel commented Nov 20, 2024

@pfps why did you close this PR?

@pfps
Copy link
Contributor

pfps commented Nov 20, 2024

Sorry, I thought this was the one for better display on mobile devices.

@pfps
Copy link
Contributor

pfps commented Nov 21, 2024

The Semantic Conditions for Ground Graphs have been subtly changed so that they no longer are correct.. This happens in a large change block where it is unclear just what the substantive change is.

This and any other substantive changes need to be removed from the PR. It is unacceptable as is.

@pfps
Copy link
Contributor

pfps commented Nov 21, 2024

This PR shows the pitfalls of using a mechanical style. The list of terminology was very much easier to see in the source when each item was one line. With each item taking up multiple lines is is much harder to get a notion from the source of what terminology is being used.

@domel domel merged commit 06b2096 into main Dec 2, 2024
1 of 3 checks passed
@gkellogg gkellogg deleted the better-html branch December 2, 2024 17:53
@pfps
Copy link
Contributor

pfps commented Dec 3, 2024

Why was this merged?

@TallTed
Copy link
Member

TallTed commented Dec 3, 2024

@domel @gkellogg — I fear this must be reverted, and its changes re-attempted via new PRs, with more specific changes in each, starting with one PR for each of the 29 commits that were a part of this PR. The comments above did NOT approve this PR, because we (at least @pfps and I) simply could not usefully review the 2000 lines of HTML and other changes, in this agglomerate shape.

@domel
Copy link
Contributor Author

domel commented Dec 3, 2024

We agreed on 2 weeks before the merge. All suggestions were corrected. 4 weeks have passed. No one has reported corrections, no one has clicked on blocking merging.

@TallTed
Copy link
Member

TallTed commented Dec 3, 2024

I said multiple times that I could not properly review the changes contemplated by this PR.

I am sorry that I didn't click the UI buttons that apparently overrule human language.

I say again — I could not properly review the changes in this PR. I do not approve of its merging. I have no useful way to review its impact. Combing through the entire document is not a viable option!

@pfps
Copy link
Contributor

pfps commented Dec 3, 2024

I agree entirely with TallTed.

@domel
Copy link
Contributor Author

domel commented Dec 3, 2024

@TallTed You made many suggestions for changes while at the same time claiming that it is impossible to review the text.

@TallTed
Copy link
Member

TallTed commented Dec 3, 2024

@domel — I did make many suggestions. You then made similar changes above and beyond my suggestions (along the same lines as my suggestions), because my suggestions revealed to you that you had not made all your intended changes. To my mind, this makes plain that the PR was not properly reviewable, even by its author — because if it were, I would have included the extra changes you made in the changes I suggested!

@domel
Copy link
Contributor Author

domel commented Dec 3, 2024

Two comments: 1. I think I have implemented all your suggestions. Each time I ask for a review. 2. I wonder why you are writing this now and not 4 weeks ago.

I think it would be good if you refreshed this thread because I have the impression that you forgot a few important details and sequence of events.

@TallTed
Copy link
Member

TallTed commented Dec 6, 2024

  1. I think I have implemented all your suggestions. Each time I ask for a review.

And that request goes into an intangible queue. This document, never mind this PR, is not always at the top of my task list.

  1. I wonder why you are writing this now and not 4 weeks ago.

4 weeks ago, the comment thread above was still fresh and awaiting input/reply from others.

Now (3 days ago), the PR was merged, effectively (but silently) declaring that the comments above had "expired" even though unresolved/unaddressed.

I have a problem with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec:editorial Minor change in the specification (markup, typo, informative text; class 1 or 2)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants