[Petal] omit-tag bug
    Fergal Daly 
    fergal at esatclear.ie
       
    Fri Aug 22 12:09:02 BST 2003
    
    
  
The spec says omit-tag="" should always omit the tag, so the following should 
disappear
<a petal:omit-tag=""/>
instead it dies because it gets translated to
$VAR1 = sub {
    my $hash = shift;
    my $res = "";
    local $^W = 0;
    $res .= "";
    if ($hash->get ('false:')) {
        $res .= "<a>";
    }
    $res .= "";
    if ($hash->get ('false:')) {
        $res .= "</a>";
    }
    return $res;
and 'false:' is not a valid expression. Does the canonicaliser know about the 
"" special case for omit-tag?
F
    
    
More information about the Petal
mailing list