Content type in Moodle 1.5

Content type in Moodle 1.5

deur Alex Djachenko -
Getal antwoorde: 2
Prentjie van Core developers Prentjie van Translators
Hello!
Sorry,if I am mistaken: I not so well sign with xml, but I wish to share some problem and its decision. Застенчивый
Moodle 1.5 use XHTML, but content type generated pages is text/html.
It creates problems with XHTML namespaces:
If I try to use such code

<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mfenced>
<mrow>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
</mrow>
</mfenced>
<mn>2</mn>
</msup>
</mrow>
</math>


It does not work.
And, if change content type generated pages to application/xhtml+xml - all marking of page spoils Мигнуть
But, if change content type to
application/xhtml+xml, and add atribute xmlns="http://www.w3.org/1999/xhtml" in tag <html> - the marking of page and formula MathML are displayed correctly Круто
P.S. I use .xml extension thet for .xhtml content type in this site not defined .

Gemiddeld van beoordelings: -
In antwoord op Alex Djachenko

Re: Content type in Moodle 1.5

deur Martin Dougiamas -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Moodle HQ Prentjie van Particularly helpful Moodlers Prentjie van Plugin developers Prentjie van Testers
I'm not 100% on this, but I'm fairly sure if we changed the content type everywhere like this there will be a lot of problems for some people on pages using certain characters sets, certain browsers, certain non-XHTML content... etc

I'm sure others know more about this than me and can look at this in more detail.
Gemiddeld van beoordelings: -
In antwoord op Martin Dougiamas

Re: Content type in Moodle 1.5

deur Alex Djachenko -
Prentjie van Core developers Prentjie van Translators
I'm test this in Mozilla, IE and Opera (but MathML work only in Mozilla Мигнуть).
Can be make an option in config (or in user prop): text/html or application/xhtml+xml and <html xmlns = " http: //www.w3.org/1999/xhtml ">? Большая усмешка
Gemiddeld van beoordelings: -