• 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.

Item5953: $params->{_DEFAULT} not robust enough in dealing with '

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal No Action Required SvenDowideit n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

  • SOMENEWTML{hello} works
  • SOMENEWTML{"hello"} works
  • SOMENEWTML{'hello'} doesn't
given the need to use single quotes to insullate from nested double quotes, and that in some places the single quote does function - I'm puzzeled by the utility of this.

-- TWiki:Main/SvenDowideit - 24 Aug 2008

I had an argument about this a long time ago. I believe that tag syntax should be context free and robust over a range of quote types. However the existing spec of TML is such that it is neither. By the spec of TML, then SOMENEWTML{'hello'} does work. Just not the way you want it to work.

You can use the context free version of the attrs tag parser, but I think you will meet a lot of resistance to changing the tag syntax in any way. So I'm setting this no-action, as a change to the syntax should go through the feature request process, not the bug process.

-- CrawfordCurrie - 24 Aug 2008

mmm, seems to me to break the principle of least surprise that some tag params work with single quote, and others don't. Setting this to more info required, rather than sweeping it under the table again.

-- TWiki:Main.SvenDowideit - 24 Aug 2008

It will actually break quite a few twiki apps that rely on single quotes to be "freely available", ie. that they don't participate in TML parsing. The easiest way to have parameters in HTML being passed in TML argument position is by using single quotes. So, please, don't change that rule. There's no real need to do it.

-- TWiki:Main.MichaelDaum - 26 Aug 2008

Stale: Setting to no action required (no feedback for 8 years).

-- PeterThoeny - 2010-10-12

ItemTemplate
Summary $params->{_DEFAULT} not robust enough in dealing with '
ReportedBy TWiki:Main.SvenDowideit
Codebase

SVN Range TWiki-5.0.0, Mon, 18 Aug 2008, build 17431
AppliesTo Engine
Component

Priority Normal
CurrentState No Action Required
WaitingFor SvenDowideit
Checkins

TargetRelease n/a
ReleasedIn

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