• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Well yes, I am a konqueror lover, so here my plea. Maybe it is also kind of "out of specs" to have a multiline text stored inside a

<input type="hidden" name="text" value="%HIDDENTEXT%"/>

as lt;input type="text" ... > is used to have one line of text in a form. Anyway, on submittion all newlines are removed from the text which is very naughty.

But hey, here's the fix which I already use in the NatSkin. Replace the above input line in editform.tmpl, editform.pattern.tmpl, preview.tmpl and preview.pattern.tmpl with

<textarea name="text" rows="10" cols="80" style="display:none">%HIDDENTEXT%</textarea>

SVN 8367 encodes \n in HIDDENTEXT

CC

This change actually breaks browsers that do not grok CSS. I suggest to revert this change just for the ClassicSkin.

-- PTh

Hmmm. Have you tested a browser that does not handle CSS? What effect do you see? All I did in SVN 8367 was to encode \n's in HIDDENTEXT - I didn't touch the templates. I can't see how that would break non-CSS browsers.

CC

My appologies, I did not read CC's comment carefully enough, I assumed the proposed fix with textarea. OK, the change is good then. Text in a a textarea with style="display:none" is shown by browsers that are not aware of style sheets.

BTW, Cairo changed newlines in hidden text field to %_N_% which got lost, then re-added in 8367. Careful refactor avoids these types of bugs.

-- PTh

ItemTemplate
Summary konqueror eats newlines in HIDDENTEXT
ReportedBy TWiki:Main.MichaelDaum
Codebase

SVN Range Tue, 17 Jan 2006 build 8350
AppliesTo Extension
Component PatternSkin, ClassicSkin
Priority Urgent
CurrentState Closed
WaitingFor

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2006-01-21 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback