Skip to content

Commit 287cdd9

Browse files
[HTML] Explain that http-equiv has nothing to do with HTTP headers whatwg/html@b6dd913
1 parent 6191d43 commit 287cdd9

1 file changed

Lines changed: 103 additions & 19 deletions

File tree

HTML-metadata-ja.html

Lines changed: 103 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@
163163

164164
●●options
165165

166-
spec_date:2025-07-24
167-
trans_update:2025-07-25
166+
spec_date:2025-07-29
167+
trans_update:2025-07-30
168168
source_checked:240712
169169
page_state_key:HTML
170170
spec_status:LS
@@ -918,6 +918,13 @@
918918
尊重-:respect:~
919919
能性:potential:~
920920
打切られ:discontinueされ:打ち切られ
921+
企てて:contemplateして:~
922+
不一致:mismatch:~
923+
用心深く:cautiousに:~
924+
切替n:switch:切り替え
925+
事故:accident:~
926+
定着-:perpetuate:~
927+
劇的:dramatic:~
921928

922929
かまわない:free to
923930
help
@@ -970,6 +977,26 @@
970977
素早く:quickに
971978
促す:encourage
972979
より後に現れてはナラナイ:must come before
980+
とは逆に:as opposed
981+
誰か:someone
982+
全くではないが,:almost, but not quite
983+
まるっきり異なる:entirely unlike
984+
まるっきり:entirely
985+
指定-:present
986+
2 種類:Two categories
987+
兼ね合いを図る:balance the likelihood of
988+
他のものに加えて:as with anything
989+
あてになるかどうか疑わしい:there is insufficient confidence in the reliability
990+
誰もが:anyone
991+
前述した/:aforementioned
992+
いずれにせよ:nonetheless
993+
越したことはない:best off
994+
にもかかわらず:despite
995+
~~考える:think
996+
書く者:writer
997+
方が良くなる:the better choice
998+
適用されない::un-applied
999+
方へ進む:will go
9731000

9741001
●未分類
9751002
供与-:contribute:~
@@ -984,7 +1011,6 @@
9841011
ranking::::ランキング
9851012
処理命令:processing instruction:~
9861013
処理命令:PI
987-
9881014
disk::::ディスク
9891015
email::::メール
9901016
iframe-srcdoc:iframe srcdoc
@@ -996,7 +1022,6 @@
9961022
最も近過去に:most-recently-
9971023
manifest::::マニフェスト
9981024

999-
指定-:present
10001025
deployment
10011026
暗くした:darker
10021027
-:leaving
@@ -1008,7 +1033,6 @@
10081033
選ぶ:choose
10091034
取り出され:take out
10101035
とされ:mark
1011-
10121036
American:米国
10131037
British:英国
10141038
Latin
@@ -1028,15 +1052,13 @@
10281052
閉じら:close
10291053
現れ:come
10301054
数えられ:count
1031-
10321055
扉:front
10331056
ような:labeled
10341057
大規模:large-scale
10351058
-:moment
10361059
時点で:moment
10371060
高速道路:motorway
10381061
news-organization:news organization:::ニュース配信組織
1039-
10401062
〜以上〜ままにある:period
10411063
:~point
10421064
:potential
@@ -1053,16 +1075,11 @@
10531075
明るい:bright
10541076
短い:short
10551077
近く:closely
1056-
2 種類:Two categories
10571078
に代えて:in preference to
10581079
終わるまで何もしない:doing nothing while waiting for to finish
1059-
兼ね合いを図る:balance the likelihood of
1060-
他のものに加えて:as with anything
10611080
~rankingを不当に操ろうと:game its ranking mechanism
10621081
近いうち:soon will be
10631082
挙げる:list
1064-
あてになるかどうか疑わしい:there is insufficient confidence in the reliability
1065-
10661083
秒数:time
10671084
後に生じた方の時点:as soon as the later of
10681085
ニュース配信サイトの第一面:A news organization's front page
@@ -1084,11 +1101,6 @@
10841101
-:certain
10851102
最終的:eventual
10861103
:against
1087-
とは逆に:as opposed
1088-
誰か:someone
1089-
全くではないが,:almost, but not quite
1090-
まるっきり異なる:entirely unlike
1091-
誰もが:anyone
10921104
先頭近く:the top of
10931105
1 ヶ月:a month
10941106
一方で:whereas
@@ -1099,8 +1111,6 @@
10991111
早々に:prematurely
11001112
各種/異なる:different
11011113
する際に:upon
1102-
前述した/:aforementioned
1103-
いずれにせよ:nonetheless
11041114
部位:part
11051115
一連の:sequence
11061116
~link先:in question
@@ -6066,6 +6076,80 @@ <h5 title="Pragma directives">4.2.5.3. ~pragma指令</h5>
60666076
When the http-equiv attribute is specified on a meta element, the element is a pragma directive.
60676077
</p>
60686078

6079+
<div class="warning" id="warning-http-equiv-unrelated-to-http-headers">
6080+
<p>
6081+
その名前 `http-equiv$a にもかかわらず、
6082+
~pragma指令は,~HTTP~headerとは ほぼ無関係である。
6083+
6084+
実装者/~web開発者
6085+
]は、[
6086+
それらが まるっきり別々なものであり,この名前は歴史的な事故である
6087+
]と~~考えるに越したことはない。
6088+
6089+
Despite the name http-equiv, pragma directives are almost entirely unrelated to HTTP headers. Implementers and web developers are best off thinking of them as entirely separate, and the name as being a historical accident.
6090+
</p>
6091+
6092+
<p>
6093+
より詳細~には、
6094+
`~refresh$stの処理~modelは,対応する `Refresh$h ~headerと同じだが、
6095+
他の標準~化された~pragma指令の挙動は,
6096+
類似に命名された~headerとは少なくとも少しは異なる
6097+
(通例的には,劇的に異なる)。
6098+
6099+
In more detail, although the refresh keyword has the same processing model as the corresponding `Refresh` header, every other standardized pragma directive has at least slightly different behavior than the similarly-named header. (And usually dramatically-different behavior.)
6100+
</p>
6101+
6102+
<p>
6103+
6104+
新たな文書~levelの~pragma/~HTTP~headerにより制御される切替n
6105+
]を追加するよう企てている[
6106+
実装者, 仕様を書く者
6107+
]どちらも,この不一致について用心深くなるベキであり、
6108+
既存の混同が定着しないよう,[
6109+
~HTTP~headerと `http-equiv$a ~pragma
6110+
]どちらにも同じ
6111+
— あるいは類似な —
6112+
挙動を追加することを避けるベキである。
6113+
代わりに,次を考慮すること:
6114+
6115+
Implementers or specification writers contemplating adding new document-level pragmas or HTTP header-controlled switches should be cautious about this mismatch, and avoid perpetuating the existing confusion by adding the same or similar behavior to both an HTTP header and an http-equiv pragma. Instead, consider\
6116+
</p>
6117+
<ul>
6118+
<li>
6119+
~HTTP~headerに限り供する。
6120+
6121+
providing only an HTTP header,\
6122+
</li>
6123+
<li>
6124+
<p>
6125+
あるいは,文書~内~pragmaが必要になる場合、
6126+
`meta$e に新たな
6127+
— `charset$a 属性に利用される~modelに類似な —
6128+
属性を追加する。
6129+
6130+
or if an in-document pragma is needed, consider adding a new attribute to meta similar to the model used by the charset attribute.\
6131+
</p>
6132+
6133+
<p>
6134+
(~DOMは変異-可能なので、
6135+
文書~内~pragmaは,避けた方が良くなることが多いことに注意。
6136+
開発者が `meta$e 要素を[
6137+
追加-/除去-/変異-
6138+
]しない単純な事例においても、
6139+
当の施策【そのような要素が指示する施策? そのような要素を取扱うための施策?】は,[
6140+
構文解析の間は適用されない
6141+
]から[
6142+
その間でも適用される
6143+
]方へ進むことになる
6144+
— それは、
6145+
複階的な含意を伴い得る。)
6146+
6147+
(Note that avoiding in-document pragmas is often the better choice, since the DOM is mutable. Thus, even in the simple case where the developer does not add, remove, or mutate meta elements, the policy will go from un-applied to applied during parsing, which can have complex implications.)
6148+
</p>
6149+
</li>
6150+
</ul>
6151+
</div>
6152+
60696153
<p>
60706154
`http-equiv$a 属性は,`列挙d属性$であり、
60716155
次に挙げる~keyword, とり得る状態, それらの対応付けが定義される:

0 commit comments

Comments
 (0)