зеркало из https://github.com/mozilla/pjs.git
Update the DOCTYPE in the examples - not part of build
This commit is contained in:
Родитель
3b73ee86f9
Коммит
8b78342f34
|
@ -1,5 +1,10 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "mathml.dtd">
|
<!DOCTYPE html PUBLIC
|
||||||
|
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
|
||||||
|
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
|
||||||
|
[
|
||||||
|
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
|
||||||
|
]>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<!--
|
<!--
|
||||||
* The contents of this file are subject to the Mozilla Public
|
* The contents of this file are subject to the Mozilla Public
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "mathml.dtd"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
|
||||||
[
|
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
|
||||||
<!ENTITY vec "→">
|
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
|
||||||
<!ENTITY partial "∂">
|
<!ENTITY vec "→">
|
||||||
|
<!ENTITY partial "∂">
|
||||||
]>
|
]>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<!--
|
<!--
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "mathml.dtd">
|
<!DOCTYPE html PUBLIC
|
||||||
|
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
|
||||||
|
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
|
||||||
|
[
|
||||||
|
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
|
||||||
|
]>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:math="http://www.w3.org/1998/Math/MathML"
|
xmlns:math="http://www.w3.org/1998/Math/MathML"
|
||||||
|
@ -31,7 +36,11 @@
|
||||||
<title>Mixing MathML with other markup</title>
|
<title>Mixing MathML with other markup</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="font-size: 18pt; background-color: gold; background-image: url(resource:/res/samples/raptor.jpg); background-repeat: no-repeat; background-attachment: fixed;">
|
<body style="font-size: 18pt;
|
||||||
|
background-color: gold;
|
||||||
|
background-image: url(resource:/res/samples/raptor.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-attachment: fixed;">
|
||||||
|
|
||||||
<h2 style="text-align: center; color: blue">
|
<h2 style="text-align: center; color: blue">
|
||||||
Mixing MathML markups and other markups to get special effects</h2>
|
Mixing MathML markups and other markups to get special effects</h2>
|
||||||
|
@ -44,30 +53,44 @@ View the source...
|
||||||
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
|
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
|
||||||
<mfrac linethickness="3">
|
<mfrac linethickness="3">
|
||||||
<mi>a</mi>
|
<mi>a</mi>
|
||||||
<html:img src="resource:/chrome/skins/modern/global/skin/animthrob.gif" />
|
<html:img src="chrome://communicator/skin/brand/throbber-anim.gif" />
|
||||||
</mfrac>
|
</mfrac>
|
||||||
</math>
|
</math>
|
||||||
|
|
||||||
|
Fill the gaps in this matrix with input fields
|
||||||
|
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
|
||||||
|
<mrow>
|
||||||
|
<mo>[</mo>
|
||||||
|
<mtable>
|
||||||
|
<mtr>
|
||||||
|
<mtd><mi>a</mi></mtd>
|
||||||
|
<mtd><html:input value="?" size="1"/></mtd>
|
||||||
|
</mtr>
|
||||||
|
<mtr>
|
||||||
|
<mtd><html:input value="?" size="1"/></mtd>
|
||||||
|
<mtd><mi>d</mi></mtd>
|
||||||
|
</mtr>
|
||||||
|
</mtable>
|
||||||
|
<mo>]</mo>
|
||||||
|
</mrow>
|
||||||
|
</math>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|
||||||
See the difference between <mi> an <html:i>
|
See the difference of rendering between <br />
|
||||||
(which doesn't understand the scriptlevel) :
|
|
||||||
|
|
||||||
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
|
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||||
<mfrac>
|
<msup>
|
||||||
<mi>a</mi>
|
<mi fontstyle="italic">jif</mi>
|
||||||
<mi>a</mi>
|
<mi fontstyle="italic">jif</mi>
|
||||||
</mfrac>
|
</msup>
|
||||||
|
</math> -- italic MathML <msup> and
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
<mfrac>
|
<span><i>jif</i><sup><i>jif</i></sup></span> -- italic HTML <sup>
|
||||||
<html:i>a</html:i>
|
|
||||||
<html:i>a</html:i>
|
|
||||||
</mfrac>
|
|
||||||
</math>
|
|
||||||
|
|
||||||
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
And there could be more...
|
And there could be more...
|
||||||
|
@ -75,7 +98,7 @@ And there could be more...
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<button style="background-color:rgb(192,192,192)">
|
<button style="background-color:rgb(192,192,192)">
|
||||||
<span style="color: brown;">
|
<span style="color: brown;">
|
||||||
For example, a MathML continued fraction inside a HTML button<br />
|
For example, click this MathML continued fraction inside a HTML button<br />
|
||||||
</span>
|
</span>
|
||||||
<math xmlns="&mathml;">
|
<math xmlns="&mathml;">
|
||||||
<mrow>
|
<mrow>
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "mathml.dtd">
|
<!DOCTYPE html PUBLIC
|
||||||
|
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
|
||||||
|
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
|
||||||
|
[
|
||||||
|
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
|
||||||
|
]>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<!--
|
<!--
|
||||||
* The contents of this file are subject to the Mozilla Public
|
* The contents of this file are subject to the Mozilla Public
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "mathml.dtd">
|
<!DOCTYPE html PUBLIC
|
||||||
|
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
|
||||||
|
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
|
||||||
|
[
|
||||||
|
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
|
||||||
|
]>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<!--
|
<!--
|
||||||
* The contents of this file are subject to the Mozilla Public
|
* The contents of this file are subject to the Mozilla Public
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "mathml.dtd">
|
<!DOCTYPE html PUBLIC
|
||||||
|
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
|
||||||
|
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
|
||||||
|
[
|
||||||
|
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
|
||||||
|
]>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<!--
|
<!--
|
||||||
* The contents of this file are subject to the Mozilla Public
|
* The contents of this file are subject to the Mozilla Public
|
||||||
|
@ -24,7 +29,23 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Various examples of MathML</title>
|
<title>Various examples of MathML</title>
|
||||||
|
<style>
|
||||||
|
maction {
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
||||||
|
maction:hover {
|
||||||
|
-moz-outline: 1px dotted black;
|
||||||
|
/* border: 1px solid black; */
|
||||||
|
}
|
||||||
|
maction[actiontype="restyle#background"] {
|
||||||
|
background-color: #3C6;
|
||||||
|
border: 1px dotted red;
|
||||||
|
}
|
||||||
|
maction[actiontype="restyle#zoom"] {
|
||||||
|
font-size: 40pt;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче