The parser in
TWikiAttrsDotPm in its "friendly" mode allows an unnamed value in the attribute list. However, this is limited to start with a lowercase character.
I cannot see anywhere in the documentation or in documentation of past tags that the unnamed attribute should start with a lowercase character.
As it would be nice to use this parser to look at the last field in the form definitions (as discussed by
CC), I propose that we allow the unnamed attribute to start with uppercase characters also.
A simple fix:
*** /e/www/twiki-dakar-4.0.2/lib/TWiki/Attrs.pm~ Fri Mar 31 23:44:35 2006
--- /e/www/twiki-dakar-4.0.2/lib/TWiki/Attrs.pm Wed Sep 27 14:47:56 2006
***************
*** 131,137 ****
unless defined( $this->{$DEFAULTKEY} );
}
# simple name with no value (boolean, or _DEFAULT)
! elsif ( $string =~ s/^$sep*([a-z]\w*)\b//s ) {
my $key = $1;
$this->{$key} = 1;
}
--- 131,137 ----
unless defined( $this->{$DEFAULTKEY} );
}
# simple name with no value (boolean, or _DEFAULT)
! elsif ( $string =~ s/^$sep*([a-zA-Z]\w*)\b//s ) {
my $key = $1;
$this->{$key} = 1;
}
Done. Since the core doesn't use friendly mode (only plugins use it) this should not be listed in the releasenotes.
CC