Piwik and XHTML 5: Document.write and Noscript mentions

Six hours later, pascal commented that I am not using the latest JS tag version. That evening, I replied:

I used the tag given to me from the Piwik 0.63 interface. It looked very similar to the one you linked to, which uses "document.write" to insert content (a script tag as it happens) into the document. "document.write" as well as the "noscript" tag are invalid in XHTML 5 (see the spec here about document.write and here about noscript, look for the bits about XML).

A year and a half later, Dariusz Pecuch commented that I should try the latest change from this ticket. He also pointed out some issues with my XHTML at the time: bad values of sitemap, webmaster, and technicalauthor for the rel attribute. I responded late that night:

Ah, I'm almost positive those rel attribute values validated before. The one (sitemap) is listed now as "proposed" and the other two no longer exist (webmaster and technicalauthor).

I've modified the linked change to remove the noscript element and the type attributes on the script tags. Seems to work. I will email you as well.


< From post 'Piwik and XHTML 5: Document.write and Noscript'