Re: [PHPTAL] Why PHPTAL stop rendering doctype after clone.

2010-09-30 Thread Piotr Kroczyński
W dniu 30.09.2010 19:37, Kornel Lesiński pisze: On 30 Sep 2010, at 18:28, Piotr Kroczyński wrote: Ok thank you for reply. I have just one more question. In which revision is that diry quick fix that you wrote earlier to make PHPTAL write doctype after clone? I just added this to svn:exter

Re: [PHPTAL] Why PHPTAL stop rendering doctype after clone.

2010-09-30 Thread Kornel Lesiński
On 30 Sep 2010, at 18:28, Piotr Kroczyński wrote: > Ok thank you for reply. I have just one more question. In which revision is > that diry quick fix that you wrote earlier to make PHPTAL write doctype after > clone? I just added this to svn:externals in place of 1.2.1: r993 > phptal -r 939 h

Re: [PHPTAL] Why PHPTAL stop rendering doctype after clone.

2010-09-30 Thread Piotr Kroczyński
Ok thank you for reply. I have just one more question. In which revision is that diry quick fix that you wrote earlier to make PHPTAL write doctype after clone? I just added this to svn:externals in place of 1.2.1: phptal -r 939 https://svn.motion-twin.com/phptal/trunk/classes/ to svn externa

Re: [PHPTAL] Why PHPTAL stop rendering doctype after clone.

2010-09-30 Thread Kornel Lesiński
> So when using HTML5 mode in PHPTAL I need to wrap all values in quotes but in > output I get them without quotes. Isn't it additional work for parser to > remove quotes even when they are permitted in HTML5? PHPTAL has HTML5 *output* mode. Input is always XML (I haven't gotten around to writ

Re: [PHPTAL] Why PHPTAL stop rendering doctype after clone.

2010-09-30 Thread Piotr Kroczyński
W dniu 30.09.2010 10:43, Kornel Lesiński pisze: On 29-09-2010 at 21:28:52 Piotr Kroczyński wrote: They say that values with space or special chars must be quotes around. They don't say that quotes should be ommited everywhere else. Just mine interpretation :) Can you send me test case wher

Re: [PHPTAL] Why PHPTAL stop rendering doctype after clone.

2010-09-30 Thread Kornel Lesiński
On 29-09-2010 at 21:28:52 Piotr Kroczyński wrote: They say that values with space or special chars must be quotes around. They don't say that quotes should be ommited everywhere else. Just mine interpretation :) Can you send me test case where PHPTAL omits quotes when it shouldn't? -- r

Re: [PHPTAL] Why PHPTAL stop rendering doctype after clone.

2010-09-29 Thread Piotr Kroczyński
W dniu 29.09.2010 11:53, Kornel Lesiński pisze: Thanks for the test case — it was very helpful. Short story: it's a bug. Ok thanks for info. Until it's fixed, I'll use this dirty fix :). When I change output mode to HTML5, PHPTAL generates broken html (no quotes around attributes values,

Re: [PHPTAL] Why PHPTAL stop rendering doctype after clone.

2010-09-29 Thread Kornel Lesiński
On 27 Sep 2010, at 22:22, Piotr Kroczyński wrote: > > After clone PHPTAL stripped doctype... Why ? Thanks for the test case — it was very helpful. Short story: it's a bug. Long story: PHPTAL stores template state in nested PHPTAL_Context objects (tal:define, tal:repeat, macro calls, etc. crea