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 table markup in branding pages #7085

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aquibbaig
Copy link

@aquibbaig aquibbaig commented Oct 3, 2024

Description

This PR fixes the following hydration error:

In HTML, <tr> cannot be a child of <table>.
This will cause a hydration error.

The browser expects <tr> tags to be wrapped in <tbody>...</tbody> tags but our server generated markup is missing this -- Hence the error arises.

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run format to ensure the code follows the style guide.
  • I have run npm run test to check if all tests are passing.
  • I have run npx turbo build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

@aquibbaig aquibbaig requested a review from a team as a code owner October 3, 2024 18:03
Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Oct 4, 2024 4:34pm

Copy link

github-actions bot commented Oct 3, 2024

Note

Your Pull Request seems to be updating Translations of the Node.js Website.

Whilst we appreciate your intent; Any Translation update should be done through our Crowdin Project.
We recommend giving a read on our Translation Guidelines.

Thank you!

@mikeesto
Copy link
Member

mikeesto commented Oct 4, 2024

Nice catch, no need to update the translation files

@aquibbaig
Copy link
Author

@mikeesto thanks! done

Copy link
Member

@mikeesto mikeesto left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @aquibbaig

Copy link

github-actions bot commented Oct 5, 2024

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 96 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 96 🟢 91 🔗
/en/about/previous-releases 🟢 99 🟢 100 🟢 96 🟢 92 🔗
/en/download 🟢 99 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 100 🟢 100 🟢 100 🟢 92 🔗

Copy link

github-actions bot commented Oct 5, 2024

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 92%
90.47% (589/651) 76.29% (177/232) 94.35% (117/124)

Unit Test Report

Tests Skipped Failures Errors Time
131 0 💤 0 ❌ 0 🔥 5.33s ⏱️

@mikeesto
Copy link
Member

mikeesto commented Oct 5, 2024

The CI failing here is unrelated, I will open an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants