<merror>
Baseline 2023Newly available
Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
MathML <merror>
要素は、エラーメッセージとしてコンテンツを表示するために使用されます。Firefox でこのエラーメッセージは、典型的な XML エラーメッセージのようにレンダリングされます。MathML マークアップが間違っているか整形式でない XML のときに、このエラーがスローされないことに注意してください。<merror>
とは何の関係もない、(MathML の XHTML 表記の場合に)依然として XML 解析エラーが発生します。
属性
- class, id, style
-
スタイルシートと一緒に用いて提供されます。
- href
-
指定された URI へのハイパーリンクの設定に使用されます。
- mathbackground
-
背景色。
#rgb
、#rrggbb
およびHTML 色名を使用できます。 - mathcolor
-
文字色と分数の線の色。
#rgb
、#rrggbb
およびHTML 色名を使用できます。
例
html
<math>
<merror>
<mrow>
<mtext> Division by zero: </mtext>
<mfrac>
<mn> 1 </mn>
<mn> 0 </mn>
</mfrac>
</mrow>
</merror>
</math>
仕様書
Specification |
---|
MathML Core # error-message-merror |
ブラウザー互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
merror |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.