Re: [PHPTAL] XML Namespace and xmlns declaration removed from emitted DOM

2012-06-13 Thread Andrew Crites
I don't think we need either of: * A new input mode * Invalid output for compliance with Google's proprietary element. There is a way to display a plusone button without using that element and using valid HTML instead. PHPTAL's HTML5 output is not as strict as I think it should be in that it all

Re: [PHPTAL] XML Namespace and xmlns declaration removed from emitted DOM

2012-06-12 Thread Kornel Lesiński
On Tue, 12 Jun 2012 21:50:15 +0100, Hisateru Tanaka wrote: In another branch I started to let PHPTAL allow using with illegal namespace. See: https://github.com/pornel/PHPTAL/compare/html5_with_ns#L4R97 Thanks for fixing empty elements and HTML5 attributes! I think the namespace fix needs

Re: [PHPTAL] XML Namespace and xmlns declaration removed from emitted DOM

2012-06-12 Thread Hisateru Tanaka
2012/6/13 Andrew Crites : > It's known that when you have an element like: > >     http://aysites.com/";> > > PHPTAL will throw an error ("There is no namespace declared...") > > You can solve this error simply by adding an `xmlns:g` attribute to the > element or one of its ancestores. > > However,

Re: [PHPTAL] XML Namespace and xmlns declaration removed from emitted DOM

2012-06-12 Thread Andrew Crites
Dearest Terin, You are correct that using XHTML as the output mode keeps the `xmlns` attribute and also the g: as part of the element. Problem is, I want to use an HTML output mode. However, The plus one API does allow you to load on a specified element, which obviates the need for the `g:pluson

Re: [PHPTAL] XML Namespace and xmlns declaration removed from emitted DOM

2012-06-12 Thread Terin Stock
Hey Andrew: You could probably setup a postfilter to remove the gplusone element and add a g:plusone element in it place. (I believe I had a postfilter doing something very similar for FAR/AIM, it's probably still around.) For the pages in question, are you generating HTML pages or XHTML pages?

[PHPTAL] XML Namespace and xmlns declaration removed from emitted DOM

2012-06-12 Thread Andrew Crites
It's known that when you have an element like: http://aysites.com/";> PHPTAL will throw an error ("There is no namespace declared...") You can solve this error simply by adding an `xmlns:g` attribute to the element or one of its ancestores. However, if you do that, PHPTAL will emit: ..