showXMLheader and getXmlnsString work the other way around

Jazzvox
12 years, 6 months ago
option=com_mobilejoomla > Smartphone Settings
'use XML-Header' and 'xmlns in HTML-Header'

if You set both to TRUE nothing is added to the document.

if You set either one or the other to FALSE, it will show up before <head>
if You set either one or the other to TRUE, it will not be inserted.

Guess the 'On' and 'Off''s got mixed up ...

In addition, I really would appreciate to get adviced for recommended settings in this place, as I don't have much of a clue - besides checking 'm.mydomain.de' by validator.w3.org, which is definitely a good idea for testing.

Thanks much for any hint!
dryabov
12 years, 6 months ago
Both to "On":
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


"XML head" to "Off", "XMLNS in HTML head" to "On":
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


"XML head" to "On", "XMLNS in HTML head" to "Off":
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html>


Both to "Off":
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html>


Works correctly in any combination.
Jazzvox
12 years, 6 months ago
...and which setting is recommended ?
dryabov
12 years, 6 months ago
Jazzvox wrote:
...and which setting is recommended ?

These settings were introduced many years ago to pass some "mobile web validators", so that page was valid xhtml code. Now most of devices prefer html4/html5, so you can set both of them to Off.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.