-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
chore(zh-cn): convert noteblocks for /web
(part 1)
#22627
Conversation
/web
/web
(part 1)
> [!CALLOUT] | ||
> `aria-label` 用于交互元素,或当 DOM 中没有可见文本可以作为标签时,通过其他 ARIA 声明使元素变为交互元素的情况。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!CALLOUT] | |
> `aria-label` 用于交互元素,或当 DOM 中没有可见文本可以作为标签时,通过其他 ARIA 声明使元素变为交互元素的情况。 | |
> [!CALLOUT] > `aria-label` 用于交互元素,或当 DOM 中没有可见文本可以作为标签时,通过其他 ARIA 声明使元素变为交互元素的情况。 |
> [!CALLOUT] | ||
> `window` 角色是抽象角色。它在这里是为了包括文档的完整性。不应由 Web 开发者使用。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!CALLOUT] | |
> `window` 角色是抽象角色。它在这里是为了包括文档的完整性。不应由 Web 开发者使用。 | |
> [!CALLOUT] > `window` 角色是抽象角色。它在这里是为了包括文档的完整性。不应由 Web 开发者使用。 |
> [!CALLOUT] | ||
> `text/plain` 并不意味“任何种类的文本数据”。如果浏览器期待的是某种特定的文本数据,很可能不会将其视为匹配。具体来说,如果从声明 CSS 文件的 {{HTMLElement("link")}} 元素中下载了一个 `text/plain` 文件,那么如果提供的是 `text/plain` 类型,就不会将其识别为有效的 CSS 文件。CSS MIME 类型需要使用 `text/css`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!CALLOUT] | |
> `text/plain` 并不意味“任何种类的文本数据”。如果浏览器期待的是某种特定的文本数据,很可能不会将其视为匹配。具体来说,如果从声明 CSS 文件的 {{HTMLElement("link")}} 元素中下载了一个 `text/plain` 文件,那么如果提供的是 `text/plain` 类型,就不会将其识别为有效的 CSS 文件。CSS MIME 类型需要使用 `text/css`。 | |
> [!CALLOUT] > `text/plain` 并不意味“任何种类的文本数据”。如果浏览器期待的是某种特定的文本数据,很可能不会将其视为匹配。具体来说,如果从声明 CSS 文件的 {{HTMLElement("link")}} 元素中下载了一个 `text/plain` 文件,那么如果提供的是 `text/plain` 类型,就不会将其识别为有效的 CSS 文件。CSS MIME 类型需要使用 `text/css`。 |
files/zh-cn/web/http/cors/index.md
Outdated
> [!CALLOUT] | ||
> `origin` 的值可以为 `null`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!CALLOUT] | |
> `origin` 的值可以为 `null`。 | |
> [!CALLOUT] > `origin` 的值可以为 `null`。 |
> [!CALLOUT] | ||
> `Accept-Post` 标头与 {{HTTPHeader("Accept")}} 标头类似,用于指定接受的媒体类型范围,但不同之处在于它并不支持优先级概念(即没有 `q` 参数)。这是因为 `Accept-Post` 是响应标头,而 `Accept` 是请求标头。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!CALLOUT] | |
> `Accept-Post` 标头与 {{HTTPHeader("Accept")}} 标头类似,用于指定接受的媒体类型范围,但不同之处在于它并不支持优先级概念(即没有 `q` 参数)。这是因为 `Accept-Post` 是响应标头,而 `Accept` 是请求标头。 | |
> [!CALLOUT] > `Accept-Post` 标头与 {{HTTPHeader("Accept")}} 标头类似,用于指定接受的媒体类型范围,但不同之处在于它并不支持优先级概念(即没有 `q` 参数)。这是因为 `Accept-Post` 是响应标头,而 `Accept` 是请求标头。 |
> [!WARNING] | ||
> `Referer` 请求头可能暴露用户的浏览历史,涉及到用户的隐私问题。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!WARNING] | |
> `Referer` 请求头可能暴露用户的浏览历史,涉及到用户的隐私问题。 | |
> [!WARNING] > `Referer` 请求头可能暴露用户的浏览历史,涉及到用户的隐私问题。 |
> [!CALLOUT] | ||
> `Strict-Transport-Security` 标头在通过 HTTP 访问时会被浏览器**忽略**。只有在你的网站通过 HTTPS 访问并且没有证书错误时,浏览器才认为你的网站支持 HTTPS,然后遵守 `Strict-Transport-Security` 标头。浏览器这样做是因为攻击者可以拦截到站点的 HTTP 连接,然后注入或者删除标头。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!CALLOUT] | |
> `Strict-Transport-Security` 标头在通过 HTTP 访问时会被浏览器**忽略**。只有在你的网站通过 HTTPS 访问并且没有证书错误时,浏览器才认为你的网站支持 HTTPS,然后遵守 `Strict-Transport-Security` 标头。浏览器这样做是因为攻击者可以拦截到站点的 HTTP 连接,然后注入或者删除标头。 | |
> [!CALLOUT] > `Strict-Transport-Security` 标头在通过 HTTP 访问时会被浏览器**忽略**。只有在你的网站通过 HTTPS 访问并且没有证书错误时,浏览器才认为你的网站支持 HTTPS,然后遵守 `Strict-Transport-Security` 标头。浏览器这样做是因为攻击者可以拦截到站点的 HTTP 连接,然后注入或者删除标头。 |
> [!WARNING] | ||
> `HEAD` 方法的响应*不应*包含响应主体。即使包含了响应主体,也*必须*忽略掉:任何(可能用于描述错误响应主体的){{glossary("Representation header", "表示标头")}}会被假定为在发送相似的 `GET` 请求时也会接收到。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!WARNING] | |
> `HEAD` 方法的响应*不应*包含响应主体。即使包含了响应主体,也*必须*忽略掉:任何(可能用于描述错误响应主体的){{glossary("Representation header", "表示标头")}}会被假定为在发送相似的 `GET` 请求时也会接收到。 | |
> [!WARNING] > `HEAD` 方法的响应*不应*包含响应主体。即使包含了响应主体,也*必须*忽略掉:任何(可能用于描述错误响应主体的){{glossary("Representation header", "表示标头")}}会被假定为在发送相似的 `GET` 请求时也会接收到。 |
> [!CALLOUT] | ||
> `"https://*.example.com"` 不匹配 `"https://example.com"`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!CALLOUT] | |
> `"https://*.example.com"` 不匹配 `"https://example.com"`。 | |
> [!CALLOUT] > `"https://*.example.com"` 不匹配 `"https://example.com"`。 |
> [!CALLOUT] | ||
> `shExpMatch()` 也可以做到,例如: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
> [!CALLOUT] | |
> `shExpMatch()` 也可以做到,例如: | |
> [!CALLOUT] > `shExpMatch()` 也可以做到,例如: |
Preview URLs (90 pages)
Flaws (134)Note! 38 documents with no flaws that don't need to be listed. 🎉 URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
No first query argument or 'browser-compat' front-matter value passed`
URL:
No first query argument or 'browser-compat' front-matter value passed`
URL:
No first query argument or 'browser-compat' front-matter value passed`
URL:
No first query argument or 'browser-compat' front-matter value passed`
URL:
No first query argument or 'browser-compat' front-matter value passed`
URL:
URL:
URL:
URL:
URL:
URL:
URL:
External URLs (26)URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
URL:
(comment last updated: 2024-07-26 12:16:10) |
9cba512
to
d45e748
Compare
RegExp used:
^\n(\s*)> \*\*备注:\*\* ([^\*_\{\[
])=>
\n$1> [!NOTE]\n$1> $2`^\n(\s*)> \*\*警告:\*\* ([^\*_\{\[
])=>
\n$1> [!WARNING]\n$1> $2`^\n(\s*)> \*\*标注:\*\* ([^\*_\{\[
])=>
\n$1> [!CALLOUT]\n$1> $2`touched folders:
/web/accessibility
/web/http
p.s. 漏了一个backtick