Changeset 22808

Show
Ignore:
Timestamp:
11/06/08 15:36:31 (5 years ago)
Author:
tokuhirom
Message:

ignore optionalEndTags.
</p> タグとるな、と。

Location:
lang/perl/Moxy/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Moxy/trunk/lib/Moxy.pm

    r22806 r22808  
    105105    $tree->store_comments(1); 
    106106    $tree->ignore_unknown(0); 
    107     $tree->p_strict(1); 
    108107    $tree->parse($html); 
    109108    $tree->eof; 
     
    133132 
    134133    # dump. 
    135     my $result = $tree->as_HTML(q{<>"&'}); 
     134    my $result = $tree->as_HTML(q{<>"&'}, '', {}); 
    136135    $tree = $tree->delete; # cleanup :-) HTML::TreeBuilder needs this. 
    137136 
  • lang/perl/Moxy/trunk/t/Plugin-Server-rewrite.t

    r10623 r22808  
    7979<html><img src="http://localhost:9999/http%3A%2F%2Fexample.com%2Fbar.jpg" /></html> 
    8080 
     81=== p img 
     82--- input 
     83<p>foo</p> 
     84--- expected 
     85<html><p>foo</p></html> 
     86