Skip to content

feat(html): Add meta http-equiv attr page #40043

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

Merged
merged 17 commits into from
Jun 30, 2025
Merged

Conversation

bsmth
Copy link
Member

@bsmth bsmth commented Jun 23, 2025

Description

additions:

  • Dedicated page for the http-equiv attr.
  • Sidebar entry

Changes:

  • updates links from the DL meta#http-equiv to the page instead: meta/http-equiv

Motivation

There's a lot to say for this, there's too much info in the single DL, it warrants a separate page, exposing compat data.

Related issues and pull requests

@bsmth bsmth requested review from a team as code owners June 23, 2025 10:57
@bsmth bsmth requested review from hamishwillee, chrisdavidmills, sideshowbarker and pepelsbey and removed request for a team June 23, 2025 10:57
@github-actions github-actions bot added Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs Content:HTTP HTTP docs Content:Security Security docs Content:Firefox Content in the Mozilla/Firefox subtree size/m [PR only] 51-500 LoC changed labels Jun 23, 2025
Copy link
Contributor

github-actions bot commented Jun 23, 2025

Preview URLs (15 pages)
Flaws (41)

Note! 12 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/HTML/Reference/Attributes
Title: HTML attribute reference
Flaw count: 35

  • broken_links:
    • Can't resolve /en-US/docs/Web/HTML/Reference/Attributes/alt
    • Can't resolve /en-US/docs/Web/HTML/Reference/Attributes/autoplay
    • Can't resolve /en-US/docs/Web/HTML/Reference/Attributes/cite
    • Can't resolve /en-US/docs/Web/HTML/Reference/Attributes/colspan
    • Can't resolve /en-US/docs/Web/HTML/Reference/Attributes/controls
    • and 30 more flaws omitted

URL: /en-US/docs/Web/HTTP/Guides/CSP
Title: Content Security Policy (CSP)
Flaw count: 3

  • unknown:
    • No generic content config found
    • no blog root
    • no blog root

URL: /en-US/docs/Web/HTTP/Reference/Headers
Title: HTTP headers
Flaw count: 3

  • macros:
    • Can't resolve /en-US/docs/Web/HTTP/Reference/Headers/Accept-Signature
    • Can't resolve /en-US/docs/Web/HTTP/Reference/Headers/Signature
    • Can't resolve /en-US/docs/Web/HTTP/Reference/Headers/Signed-Headers
External URLs (5)

URL: /en-US/docs/Mozilla/Firefox/Releases/55
Title: Firefox 55 for developers


URL: /en-US/docs/Web/HTML/Reference/Elements/meta/http-equiv
Title: <meta> http-equiv attribute

(comment last updated: 2025-06-30 00:47:47)

@github-actions github-actions bot added the merge conflicts 🚧 [PR only] label Jun 23, 2025
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

Comment on lines +32 to +33
- : Defines a pragma directive, which are instructions for the browser for processing the document.
The attribute's name is short for `http-equivalent` because the allowed values are names of equivalent HTTP headers.
Copy link
Collaborator

@hamishwillee hamishwillee Jun 24, 2025

Choose a reason for hiding this comment

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

The first sentence doesn't mean anything to me, and none of this says what it actually does. I think pragma doesn't mean much to developers who only work in JavaScript.

Can we do (something like):

Suggested change
- : Defines a pragma directive, which are instructions for the browser for processing the document.
The attribute's name is short for `http-equivalent` because the allowed values are names of equivalent HTTP headers.
- : The `http-equiv` (short for `http-equivalent`) is used to specify a set of HTTP headers that the browser will apply to the document, as though they had been included in the response that returned the page.

Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
- : Defines a pragma directive, which are instructions for the browser for processing the document.
The attribute's name is short for `http-equivalent` because the allowed values are names of equivalent HTTP headers.
- : The `http-equiv` (short for 'HTTP equivalent') attribute tells the browser to behave as if the response that returned the page included certain HTTP headers.
The values you can provide match the names of HTTP headers such as {{httpheader("Refresh")}} and {{httpheader("Content-Security-Policy")}}.

I had another go at this, what do you think?

bsmth and others added 4 commits June 24, 2025 09:28
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
@github-actions github-actions bot added Content:Learn Learning area docs Content:Meta Content in the meta docs merge conflicts 🚧 [PR only] and removed merge conflicts 🚧 [PR only] labels Jun 24, 2025
@github-actions github-actions bot removed Content:Meta Content in the meta docs merge conflicts 🚧 [PR only] labels Jun 24, 2025
@github-actions github-actions bot removed the Content:Learn Learning area docs label Jun 24, 2025
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@bsmth bsmth requested a review from hamishwillee June 27, 2025 09:25
Copy link
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

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

Thanks @bsmth . I fixed a nit to my taste and this looks good to merge.

@hamishwillee hamishwillee merged commit a33c2c8 into mdn:main Jun 30, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Firefox Content in the Mozilla/Firefox subtree Content:HTML Hypertext Markup Language docs Content:HTTP HTTP docs Content:Security Security docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants