NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item9336: Manage.pm seems to have a very odd idea of what a valid htmlColor is
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Engine |
|
|
sub _isValidHTMLColor {
my $c = shift;
return $c =~
m/^(#[0-9a-f]{6}|black|silver|gray|white|maroon|red|purple|fuchsia|green|lime|olive|yellow|navy|blue|teal|aqua)/i;
}
doesn't even seem to contain the pretty normal lightblue, darkblue variations, let alone the reality that there aren't
that many that we can't get it right.
basically, the list of 16 is the html4 spec - but browsers have been more intellegent for years.
see
http://www.w3.org/TR/REC-html40/types.html#h-6.5
what about rgb() and from css3, hsl()&hsla(), html 5, there's also rgba()
--
SvenDowideit - 16 Jul 2010
added the extended color set - apparently its been in universal use for the last 5 years - and its a real pain to discover that a color name you're used to using causes foswiki to refuse to create a web.
--
SvenDowideit - 21 Jul 2010