Help me Obi, you're my last hope ^^
I got a strange thing, and can't find why.
I got no xmlns attribute anymore on my regular pages (1.16.4, Vector, no source hacking).
My HTML sources start as :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="fr" dir="ltr"> <head>
$wgXhtmlDefaultNamespace is correctly defined, I even try to add it a second time in LocalSettings.php, no effect.
And I can't remember when was the last time xmlns was there (been working for 2 days on my MW install, and didn't check closely that part of the rendered source before having some strange CSS issues and needed to validate the html).
Checked bugzilla, Google, doesn't seem to be a common occurrence. So I'm guessing I broke something somewhere, but I don't know where to start :-(
If that helps :
$grep -ir 'xmlns' *
config/Installer.php:<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr"> docs/export-0.3.xsd:<schema xmlns="http://www.w3.org/2001/XMLSchema" docs/export-0.3.xsd: xmlns:mw="http://www.mediawiki.org/xml/export-0.3/" docs/export-demo.xml:<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.4/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.4/ http://www.mediawiki.org/xml/export-0.4.xsd" version="0.4" xml:lang="en"> docs/export-0.1.xsd:<schema xmlns="http://www.w3.org/2001/XMLSchema" docs/export-0.1.xsd: xmlns:mw="http://www.mediawiki.org/xml/export-0.1/" docs/export-0.4.xsd:<schema xmlns="http://www.w3.org/2001/XMLSchema" docs/export-0.4.xsd: xmlns:mw="http://www.mediawiki.org/xml/export-0.4/" docs/export-0.2.xsd:<schema xmlns="http://www.w3.org/2001/XMLSchema" docs/export-0.2.xsd: xmlns:mw="http://www.mediawiki.org/xml/export-0.2/" Fichier binaire images/archive/a/a9/20110501053048!Blason_Arène_de_la_nuit.png concordant Fichier binaire images/0/05/Blason_Communauté_des_ombres.png concordant Fichier binaire images/a/a9/Blason_Arène_de_la_nuit.png concordant Fichier binaire images/3/30/Blason_Goldmoon.png concordant Fichier binaire images/3/3e/Blason_Académie.png concordant Fichier binaire images/8/83/Blason_Ordre_de_la_nature.png concordant Fichier binaire images/8/8a/Blason_Haute_Guilde.png concordant Fichier binaire images/6/60/Blason_Église_de_lumière.png concordant includes/Export.php: 'xmlns' => "http://www.mediawiki.org/xml/export-$ver/", includes/Export.php: 'xmlns:xsi' => "http://www.w3.org/2001/XMLSchema-instance", includes/specials/SpecialVersion.php: // SimpleXml whines about the xmlns... includes/Math.php: array( 'xmlns' => 'http://www.w3.org/1998/Math/MathML' ) ), includes/OutputPage.php: $ret .= "<html xmlns="{$wgXhtmlDefaultNamespace}" "; includes/OutputPage.php: $ret .= "xmlns:{$tag}="{$ns}" "; includes/Sanitizer.php: "/(?:^|$space)((?:xml:|xmlns:)?$attrib+) includes/Sanitizer.php:define( 'MW_XMLNS_ATTRIBUTE_PATTRN', "/^xmlns:$attrib+$/" ); includes/Sanitizer.php: if ( $wgAllowRdfaAttributes && preg_match( MW_XMLNS_ATTRIBUTE_PATTRN, $attribute ) ) { includes/OutputHandler.php:<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr"> includes/Metadata.php:<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" includes/Metadata.php: xmlns:dc="http://purl.org/dc/elements/1.1/%22%3E includes/Metadata.php:<rdf:RDF xmlns:cc="http://web.resource.org/cc/" includes/Metadata.php: xmlns:dc="http://purl.org/dc/elements/1.1/" includes/Metadata.php: xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#%22%3E includes/templates/NoLocalSettings.php:<html xmlns='http://www.w3.org/1999/xhtml' lang='en'> includes/templates/PHP4.php:<html xmlns='http://www.w3.org/1999/xhtml' lang='en'> includes/Feed.php: ?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> includes/Feed.php: ?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="<?php print $this->getLanguage() ?>"> includes/Title.php:<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#%5C" includes/Title.php: xmlns:dc="http://purl.org/dc/elements/1.1/%5C" includes/Title.php: xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/%5C%22%3E LocalSettings.php:// test pbm xmlns maintenance/tests/test-prefetch-stub.xml:<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.3/ http://www.mediawiki.org/xml/export-0.3.xsd" version="0.3" xml:lang="en"> maintenance/tests/test-prefetch-current.xml:<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.3/ http://www.mediawiki.org/xml/export-0.3.xsd" version="0.3" xml:lang="en"> maintenance/tests/test-prefetch-previous.xml:<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.3/ http://www.mediawiki.org/xml/export-0.3.xsd" version="0.3" xml:lang="en"> maintenance/generateSitemap.php: return $this->xmlHead() . '<sitemapindex xmlns="' . $this->xmlSchema() . '">' . "\n"; maintenance/generateSitemap.php: return $this->xmlHead() . '<urlset xmlns="' . $this->xmlSchema() . '">' . "\n"; maintenance/renderDump.php: "<html xmlns="http://www.w3.org/1999/xhtml%5C%22%3E%5Cn" . maintenance/importUseModWiki.php:<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.1/" maintenance/importUseModWiki.php: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" opensearch_desc.php: 'xmlns' => 'http://a9.com/-/spec/opensearch/1.1/', opensearch_desc.php: 'xmlns:moz' => 'http://www.mozilla.org/2006/browser/search/' ) );
Dorem - Jérémie Bouillon wrote:
Help me Obi, you're my last hope ^^
I got a strange thing, and can't find why.
I got no xmlns attribute anymore on my regular pages (1.16.4, Vector, no source hacking).
My HTML sources start as :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="fr" dir="ltr"> <head>
$wgXhtmlDefaultNamespace is correctly defined, I even try to add it a second time in LocalSettings.php, no effect.
And I can't remember when was the last time xmlns was there (been working for 2 days on my MW install, and didn't check closely that part of the rendered source before having some strange CSS issues and needed to validate the html).
Checked bugzilla, Google, doesn't seem to be a common occurrence. So I'm guessing I broke something somewhere, but I don't know where to start :-(
You seem to be using $wgHtml5 with $wgWellFormedXml $wgHtml5 = false; should give you back all to full XHTML.
On 02/05/2011 00:48, Platonides wrote:
You seem to be using $wgHtml5 with $wgWellFormedXml $wgHtml5 = false; should give you back all to full XHTML.
Thanks a lot, that did the trick.
Strange thing, I had no $wgHtml5 in Localsettings, and I did not edit Default settings conf file.
mediawiki-l@lists.wikimedia.org