| Description: |
Another problem related to badly formed html, here I think the problem is an open tag inside an attribute value, combined with a xhtml-style null end tag.
% htmlparse::parse {<img src="x<y" /> <i></i>}
==> hmstart {} {} {}
==> img {} src=\"x
==> y\" {} {} {}
==> img / {} { <i} {}
==> i / {} {}
==> hmstart / {} {}
The html is malformed, so parsing is a guessing game, but the parser should try to be as resilient as possible. What happens in this case is that the callback command, documented as always being called with 4 arguments, is called with 3 and 5 arguments. This causes an error if your callback command has formal arguments instead of "args".
|