diff options
author | Simon McVittie <smcv@debian.org> | 2010-09-26 22:12:10 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-09-26 22:33:54 +0100 |
commit | 5876968fa1ff1225542d2afd836d1027276bab44 (patch) | |
tree | f29254c84087af3e74d314e34f6941cde9d9edb6 /IkiWiki | |
parent | b4471d44184a03180ad19a98673d52752ce73b46 (diff) |
htmlbalance: be compatible with HTML::Tree 4.0
The HTML::Tree changelog says:
[THINGS THAT MAY BREAK YOUR CODE OR TESTS]
...
* Attribute names are now validated in as_XML and invalid names will
cause an error.
and indeed the regression tests do get an error.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/htmlbalance.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/htmlbalance.pm b/IkiWiki/Plugin/htmlbalance.pm index 26f8e494b..da450eea7 100644 --- a/IkiWiki/Plugin/htmlbalance.pm +++ b/IkiWiki/Plugin/htmlbalance.pm @@ -43,7 +43,7 @@ sub sanitize (@) { my @nodes = $tree->disembowel(); foreach my $node (@nodes) { if (ref $node) { - $ret .= $node->as_XML(); + $ret .= $node->as_HTML(undef, '', {}); chomp $ret; $node->delete(); } |