blob: d69380bd1a707760c6e945d54aaa5894267eaefb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
---
title: <merror>
slug: Web/MathML/Element/merror
tags:
- MathML
- 'MathML:Element'
- 'MathML:General Layout Schemata'
- Referência de MathML
translation_of: Web/MathML/Element/merror
---
<div>{{MathMLRef}}</div>
<p class="summary">O elemento de MathML <code><merror></code> é usado para mostrar os seus conteúdos como mensagens de erro. No Firefox esta mensagem é renderizada de forma parecida à mensagem de erro de XML. Note que este erro <strong>não</strong> aparece quando a linguagem de marcação (<em>markup</em>) está errada ou o XML está mal formatado. Irá receber um erro de processamento do XML (no caso de notação XHTML de MathML), que não é relacionado ao <code><merror></code>.</p>
<h2 id="Atributos">Atributos</h2>
<dl>
<dt id="attr-class-id-style">class, id, style</dt>
<dd>Para uso com <em><a href="/en-US/docs/CSS">stylesheets</a></em>.</dd>
<dt id="attr-href">href</dt>
<dd>Usado para criar uma hiperligação para um URI.</dd>
<dt id="attr-mathbackground">mathbackground</dt>
<dd>A cor de fundo. Pode usar <code>#rgb</code>, <code>#rrggbb</code> e <a href="/en-US/docs/CSS/color_value#Color_Keywords">nomes de cores de HTML</a>.</dd>
<dt id="attr-mathcolor">mathcolor</dt>
<dd>A cor do texto e da linha de fração. Pode usar <code>#rgb</code>, <code>#rrggbb</code> e <a href="/en-US/docs/CSS/color_value#Color_Keywords">nomes de cores de HTML</a>.</dd>
</dl>
<h2 id="Exemplos">Exemplos</h2>
<pre class="brush: html notranslate"><math>
<merror>
<mrow>
<mtext> Division by zero: </mtext>
<mfrac>
<mn> 1 </mn>
<mn> 0 </mn>
</mfrac>
</mrow>
</merror>
</math>
</pre>
<h2 id="Especificações">Especificações</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Especificação</th>
<th scope="col">Estado</th>
<th scope="col">Comentários</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ SpecName('MathML3', 'chapter3.html#presm.merror', 'merror') }}</td>
<td>{{ Spec2('MathML3') }}</td>
<td>Especificação atual</td>
</tr>
<tr>
<td>{{ SpecName('MathML2', 'chapter3.html#presm.merror', 'merror') }}</td>
<td>{{ Spec2('MathML2') }}</td>
<td>Especificação inicial</td>
</tr>
</tbody>
</table>
<h2 id="Compatibilidade">Compatibilidade</h2>
<p>{{Compat("mathml.elements.merror")}}</p>
|