|
Packit |
16975c |
Changelog for HTML-Tree
|
|
Packit |
16975c |
|
|
Packit |
16975c |
5.07 2017-08-31
|
|
Packit |
16975c |
Release by Kent Fredric
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* Workaround more @INC issues with Module::Build and sudo RT#122199
|
|
Packit |
16975c |
|
|
Packit |
16975c |
5.06 2017-04-28
|
|
Packit |
16975c |
Release by Kent Fredric
|
|
Packit |
16975c |
|
|
Packit |
16975c |
* Revert XML escaping changes from 5.04 due to large numbers of
|
|
Packit |
16975c |
broken dependents
|
|
Packit |
16975c |
- RT#121310 https://rt.cpan.org/Ticket/Display.html?id=121310
|
|
Packit |
16975c |
- https://github.com/rjbs/MasonX-Resolver-WidgetFactory/issues/1
|
|
Packit |
16975c |
- https://github.com/kentfredric/HTML-Tree/issues/1
|
|
Packit |
16975c |
|
|
Packit |
16975c |
5.05 2017-04-26
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* Revert Dist::Zilla Removal
|
|
Packit |
16975c |
- https://github.com/jfearn/HTML-Tree/issues/7
|
|
Packit |
16975c |
- Vendor note: It should be simpler to compare 5.03 and 5.05
|
|
Packit |
16975c |
than to compare 5.04 and 5.05, or 5.03 and 5.04.
|
|
Packit |
16975c |
- Fixes RT#12230: Undeclared dep on Test::Fatal
|
|
Packit |
16975c |
- https://rt.cpan.org/Ticket/Display.html?id=121230
|
|
Packit |
16975c |
* Proper fix for '.' in @INC
|
|
Packit |
16975c |
- https://rt.cpan.org/Ticket/Display.html?id=120521
|
|
Packit |
16975c |
|
|
Packit |
16975c |
5.04 2017-04-17
|
|
Packit |
16975c |
Release by Jeff Fearn
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* Remove Distzilla to fix RT #120521 #89820
|
|
Packit |
16975c |
* Add POD to htmltree RT #116367
|
|
Packit |
16975c |
* Speed up is_inside method RT #113415
|
|
Packit |
16975c |
- From Todd Rinaldo https://github.com/madsen/HTML-Tree/pull/5
|
|
Packit |
16975c |
* Fix extra spaces being added to comments RT #94311
|
|
Packit |
16975c |
- From Tomaz Solc
|
|
Packit |
16975c |
* Don't needlessly escape characters in element content RT #93431
|
|
Packit |
16975c |
- From Tomaz Solc
|
|
Packit |
16975c |
|
|
Packit |
16975c |
5.03 2012-09-22
|
|
Packit |
16975c |
Release by Christopher J. Madsen
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE OR TESTS]
|
|
Packit |
16975c |
* as_HTML no longer indents <textarea> (Tomohiro Hosaka) (RT #70385)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* as_trimmed_text did not accept '0' for extra_chars
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[DOCUMENTATION]
|
|
Packit |
16975c |
* Explain that as_text never adds whitespace (RT #66498)
|
|
Packit |
16975c |
* Explain what extra_chars can contain for as_trimmed_text.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
5.02 2012-06-27
|
|
Packit |
16975c |
Release by Christopher J. Madsen
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[TESTS]
|
|
Packit |
16975c |
* Do not attempt to check result of $! in construct_tree.t
|
|
Packit |
16975c |
(The fix in 5.01 was not successful.)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
5.01 2012-06-20
|
|
Packit |
16975c |
Release by Christopher J. Madsen
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[TESTS]
|
|
Packit |
16975c |
* Force C locale in construct_tree.t (in non-English locales,
|
|
Packit |
16975c |
$! will produce messages in a different language) (RT #77823)
|
|
Packit |
16975c |
* Add test for preserving whitespace while parsing.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
5.00 2012-06-12
|
|
Packit |
16975c |
Release by Christopher J. Madsen
|
|
Packit |
16975c |
|
|
Packit |
16975c |
There are only some minor documentation changes since 4.903.
|
|
Packit |
16975c |
This is a summary of the most significant changes since 4.2.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE OR TESTS]
|
|
Packit |
16975c |
* Use weak references to avoid memory leaks
|
|
Packit |
16975c |
See "Weak References" in HTML::Element for details.
|
|
Packit |
16975c |
* new_from_file now dies if the file cannot be opened. $! records
|
|
Packit |
16975c |
the specific problem. (Previously, you got a tree with a few
|
|
Packit |
16975c |
implicit elements.)
|
|
Packit |
16975c |
* Some methods normally returning a scalar could return the empty
|
|
Packit |
16975c |
list in certain circumstances. This has been corrected. The
|
|
Packit |
16975c |
affected methods are: address, deobjectify_text, detach, is_inside,
|
|
Packit |
16975c |
& pindex.
|
|
Packit |
16975c |
* deprecate the Version sub/method. Use the VERSION method instead.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[ENHANCEMENTS]
|
|
Packit |
16975c |
* add new_from_url (Using LWP) (David Pottage) (RT #68097)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[DOCUMENTATION]
|
|
Packit |
16975c |
* Explain that parse_file (and new_from_file) opens files in binary mode
|
|
Packit |
16975c |
BUT THIS IS PLANNED TO CHANGE.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
4.903 2012-06-08
|
|
Packit |
16975c |
Trial Release by Christopher J. Madsen
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[DOCUMENTATION]
|
|
Packit |
16975c |
* Explain that parse_file (and new_from_file) opens files in binary mode
|
|
Packit |
16975c |
BUT THIS IS PLANNED TO CHANGE.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[TESTS]
|
|
Packit |
16975c |
* test error handling for new_from_file & new_from_url
|
|
Packit |
16975c |
* remove use_ok from most tests
|
|
Packit |
16975c |
(if the module won't load, the tests can't pass anyway)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
4.902 2012-06-06
|
|
Packit |
16975c |
Trial Release by Christopher J. Madsen
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE OR TESTS]
|
|
Packit |
16975c |
* new_from_url now dies if the request fails or the response is not HTML
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
4.901 2012-06-06
|
|
Packit |
16975c |
Trial Release by Christopher J. Madsen
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE OR TESTS]
|
|
Packit |
16975c |
* new_from_file now dies if the file cannot be opened. $! records
|
|
Packit |
16975c |
the specific problem. (Previously, you got a tree with a few
|
|
Packit |
16975c |
implicit elements.)
|
|
Packit |
16975c |
* Some methods normally returning a scalar could return the empty
|
|
Packit |
16975c |
list in certain circumstances. This has been corrected. The
|
|
Packit |
16975c |
affected methods are: address, deobjectify_text, detach, is_inside,
|
|
Packit |
16975c |
& pindex.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* new_from_url did not call eof after parsing
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[DOCUMENTATION]
|
|
Packit |
16975c |
* Improve SEE ALSO for HTML::TreeBuilder
|
|
Packit |
16975c |
* General documentation cleanup
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
4.900 2012-06-01
|
|
Packit |
16975c |
Trial Release by Christopher J. Madsen
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE OR TESTS]
|
|
Packit |
16975c |
* Use weak references to avoid memory leaks
|
|
Packit |
16975c |
See "Weak References" in HTML::Element for details.
|
|
Packit |
16975c |
* deprecate the Version sub/method. Use the VERSION method instead.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[ENHANCEMENTS]
|
|
Packit |
16975c |
* add new_from_url (Using LWP) (David Pottage) (RT #68097)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
4.2 2011-04-06
|
|
Packit |
16975c |
Release by Jeff Fearn
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* Tied all $VERSION to HTML::Element to ensure latest package is used
|
|
Packit |
16975c |
for all modules. RT #66110
|
|
Packit |
16975c |
* Moved perlcritic tests to xt/author
|
|
Packit |
16975c |
[DOCUMENTATION]
|
|
Packit |
16975c |
* Added text and link to "Perl and LWP" book.
|
|
Packit |
16975c |
* Fix Authors is all PM files.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
4.1 2010-10-25
|
|
Packit |
16975c |
Release by Jeff Fearn
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* '/' is a valid attribute (pull from tokuhirom) (RT #61809)
|
|
Packit |
16975c |
* Change check fo subclasses in as_HTML. (RT #61673)
|
|
Packit |
16975c |
* Fix ProhibitThreeArgumentOpen being triggered. (RT #61857)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
4.0 2010-09-20
|
|
Packit |
16975c |
Release by Jeff Fearn
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE OR TESTS]
|
|
Packit |
16975c |
* Changes to entity encoding from ord values to XML entities may break
|
|
Packit |
16975c |
tests expecting style encoding.
|
|
Packit |
16975c |
* Attribute names are now validated in as_XML and invalid names will
|
|
Packit |
16975c |
cause an error.
|
|
Packit |
16975c |
* HTML-Tree now requires at least Perl 5.8.0
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* Optionally empty tags with content now have close tag. (RT #49932 #41806)
|
|
Packit |
16975c |
* Added attribute name validation. (RT #23439)
|
|
Packit |
16975c |
* Added span to @TAGS in AsSubs. (RT #55848)
|
|
Packit |
16975c |
* Changed tag encoding to human readable form, e.g. >, and stopped
|
|
Packit |
16975c |
re-encoding encoded tags (RT #55835)
|
|
Packit |
16975c |
* Added no_expand_entities option to disable entity decoding when
|
|
Packit |
16975c |
parsing source. (RT #24947)
|
|
Packit |
16975c |
* Fix replace_with not setting parent for an array of content.
|
|
Packit |
16975c |
(RT #28204 #45495)
|
|
Packit |
16975c |
* Removed newline being appended to as_HTML output. (RT #41739)
|
|
Packit |
16975c |
* Fix invalid parent for subsclasses. (RT #36247)
|
|
Packit |
16975c |
* Fixed #! line in tests (RT #41945)
|
|
Packit |
16975c |
* Switched to Module::Build
|
|
Packit |
16975c |
* Fixed Perl::Critic errors
|
|
Packit |
16975c |
* Added lots of use strict and use warnings
|
|
Packit |
16975c |
* Fix PERL_UNICODE breaking tests. (RT #28404)
|
|
Packit |
16975c |
* Add check for class type to traverse. (RT #35948)
|
|
Packit |
16975c |
* Move attribute name validation to as_XML. (RT #60619)
|
|
Packit |
16975c |
* Fix critic test exploding if Test::Perl::Critic isn't installed.
|
|
Packit |
16975c |
* Fix annoying message about x.yy_z not being numeric in t/building.t
|
|
Packit |
16975c |
* Added extra_chars options to as_trimmed_text (RT #26436)
|
|
Packit |
16975c |
* Added catch for broken table tags (RT #59980)
|
|
Packit |
16975c |
* Replace parentheses for constants. (RT #58880)
|
|
Packit |
16975c |
* Removed build deps Devel::Cover, Test::Pod::Coverage, Test::Perl::Critic.
|
|
Packit |
16975c |
(RT #58878)
|
|
Packit |
16975c |
* Added create_makefile_pl => 'traditional' to Build.PL (RT #58878)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[ENHANCEMENTS]
|
|
Packit |
16975c |
* (Ricardo Signes RT #26282) The secret hack to allow elements to be created
|
|
Packit |
16975c |
from classes other than HTML::Element has been cleaned up and documented
|
|
Packit |
16975c |
for the benefit of TreeBuilder subclasses.
|
|
Packit |
16975c |
q.v., HTML::TreeBuilder->element_class
|
|
Packit |
16975c |
* Added HTML::Element::encoded_content to control encoding of entities on
|
|
Packit |
16975c |
output.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[TESTS]
|
|
Packit |
16975c |
* Added test for optionally empty tags, like A.
|
|
Packit |
16975c |
* Added test for invalid attribute name.
|
|
Packit |
16975c |
* Added more tests for entity parsing.
|
|
Packit |
16975c |
* Add parent test from Christopher J. Madsen. (RT #28204)
|
|
Packit |
16975c |
* Add subclass test. (RT #36247)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[DOCUMENTATION]
|
|
Packit |
16975c |
* Docs spelling patch from Ansgar Burchardt <ansgar@43-1.org> (RT #55836)
|
|
Packit |
16975c |
* Added definition of white space to as_trimmed_text. (RT #26436)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.23 2006-11-12
|
|
Packit |
16975c |
Release by Pete Krawczyk <petek@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE OR TESTS]
|
|
Packit |
16975c |
* Mark-Jason Dominus points out that the fix for as_html was not
|
|
Packit |
16975c |
proper, and broken behavior should never be codified. Fixed
|
|
Packit |
16975c |
as_html so an empty string doesn't encode entites, instead of
|
|
Packit |
16975c |
blaming the behavior on HTML::Entities. (RT 18571)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.22 2006-11-11
|
|
Packit |
16975c |
Release by Pete Krawczyk <petek@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE OR TESTS]
|
|
Packit |
16975c |
* HTML::Element::as_XML now only escapes five characters, instead
|
|
Packit |
16975c |
of escaping everything but alphanumerics and spaces. This is
|
|
Packit |
16975c |
more in line with the XML spec, and will no longer escape wide
|
|
Packit |
16975c |
characters as two (or more) entities. Resolves RT 14260. Thanks
|
|
Packit |
16975c |
to Carl Franks and somewhere [at] confuzzled.lu for assistance.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* A string comparison was commented to use lc() on both sides, but
|
|
Packit |
16975c |
didn't. This caused HTML::Element::look_down to not properly find
|
|
Packit |
16975c |
elements in certain cases. Thanks to Andrew Suhachov. (RT 21114)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[TESTS]
|
|
Packit |
16975c |
* Added several new tests and enhanced others. Thanks to Rocco
|
|
Packit |
16975c |
Caputo for t/attributes.t, and several others for providing
|
|
Packit |
16975c |
test cases in their RT bugs.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[DOCUMENTATION]
|
|
Packit |
16975c |
* Fixed description of HTML::Element::all_attr_names. Thanks
|
|
Packit |
16975c |
to dsteinbrunner [at] pobox.com for catching it.
|
|
Packit |
16975c |
* Fixed example code in HTML::Element::push_content. Thanks
|
|
Packit |
16975c |
to dsteinbrunner [at] pobox.com for catching it. (RT 21293)
|
|
Packit |
16975c |
* Fixed description of HTML::Element::as_HTML. Thanks to
|
|
Packit |
16975c |
Mark-Jason Dominus for catching it. (RT 18569)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.21 2006-08-06
|
|
Packit |
16975c |
Release by Pete Krawczyk <petek@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* Updated HTML::Parser requirement to 3.46 to fix a bug in
|
|
Packit |
16975c |
tag-rendering.t, noted in RT 20816 and 19796. Thanks to
|
|
Packit |
16975c |
Gordon Lack and Ricardo Signes
|
|
Packit |
16975c |
* Fixed HTML::TreeBuilder to not remove where it shouldn't,
|
|
Packit |
16975c |
using patch supplied in RT 17481. Thanks to Chris Madsen.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[DOCUMENTATION]
|
|
Packit |
16975c |
* HTML-Tree has a new maintainer: Pete Krawczyk <petek@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.20 2006-06-04
|
|
Packit |
16975c |
Release by Andy Lester
|
|
Packit |
16975c |
|
|
Packit |
16975c |
No code changes. Just making sure all notes go to Andy Lester,
|
|
Packit |
16975c |
not Sean Burke.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.19_04 2006-02-01
|
|
Packit |
16975c |
Trial Release by Andy Lester
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* Modified starttag() so that it could render a literal HTML::Element
|
|
Packit |
16975c |
correctly. Added a test case for this in tag-rendering.t
|
|
Packit |
16975c |
Thanks to Terrence Brannon.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.19_03 2005-11-25
|
|
Packit |
16975c |
Trial Release by Andy Lester
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE]
|
|
Packit |
16975c |
* The store_declarations() method has been restored, but defaults
|
|
Packit |
16975c |
to true instead of false.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.19_02 2005-11-24
|
|
Packit |
16975c |
Trial Release by Andy Lester
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[THINGS THAT MAY BREAK YOUR CODE]
|
|
Packit |
16975c |
* The store_declarations() method has been removed.
|
|
Packit |
16975c |
* Non-closing HTML tags like are now rendered as .
|
|
Packit |
16975c |
* All values in tags are now double-quoted. Previously, all-numeric
|
|
Packit |
16975c |
values weren't quoted.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[FIXES]
|
|
Packit |
16975c |
* The DOCTYPE declaration now always gets put back at the top of
|
|
Packit |
16975c |
the recreated document. Thanks, Terrence Brannon.
|
|
Packit |
16975c |
* Non-closing HTML tags like are now rendered as .
|
|
Packit |
16975c |
Thanks to Ian Malpass.
|
|
Packit |
16975c |
* All values in tags are now double-quoted.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
[DOCUMENTATION]
|
|
Packit |
16975c |
* Updated docs from Terrence Brannon.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.19_01 2005-11-09
|
|
Packit |
16975c |
Trial Release by Andy Lester
|
|
Packit |
16975c |
|
|
Packit |
16975c |
-- No new functionality. New tests, though!
|
|
Packit |
16975c |
Thanks to the Chicago Perl Mongers for their work.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.18 2003-09-15
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
-- bugfix to test, adding qr// to look_(down|up)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Accepting Iain 'Spoon' Truskett's neat patch for qr// as lookdown
|
|
Packit |
16975c |
operators (previously you had to do sub { $_[0]=~ m/.../}).
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Rewrote some tests, notably parsefile.t, which was pointlessly
|
|
Packit |
16975c |
failing because of an incompatibility with an HTML::Parser version.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Removed the disused ancient utils "dtd2pm" and "ent" from the dist.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added TODO file.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.17 2003-01-18
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
-- minor bugfix
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::Element : Making as_HTML('',...) work just like
|
|
Packit |
16975c |
as_HTML(undef,...). Also fixing as_XML's docs to remove mention of
|
|
Packit |
16975c |
an unimplemented feature (specifying what characters to escape).
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.16 2002-11-06
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
-- just fixing a doc typo.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.15 2002-11-06
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
-- a few new features.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added the aliases "descendents" and "find" to HTML::Element.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added a new method "simplify_pres" to HTML::Element.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.14 2002-10-19
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
-- minor bugfix
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Just fixes a few problems in HTML::Element with the number_lists
|
|
Packit |
16975c |
method.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.13 2002-08-16
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
-- basically a bugfix version
|
|
Packit |
16975c |
|
|
Packit |
16975c |
It turns out that 3.12 had a hideous HTML::TreeBuilder bug that
|
|
Packit |
16975c |
made the whole thing damn near useless. Fixed.
|
|
Packit |
16975c |
Many many thanks to Michael Koehne for catching this!
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Wrote t/parse.t, to catch this sort of thing from happening again.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed a bug that would treat outside any table context
|
|
Packit |
16975c |
as
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.12 2002-07-30
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added as_trimmed_text method to HTML::Element, as described
|
|
Packit |
16975c |
(prophesied?) in the fantabulous new book /Perl & LWP/.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Bugfix: fixed unshift_content when given a LoL. (_parent wasn't
|
|
Packit |
16975c |
getting set right.)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::Element and HTML::TreeBuilder now enforce at least some
|
|
Packit |
16975c |
minimal sanity on what can be in a tag name. (Notably, no spaces,
|
|
Packit |
16975c |
slashes, or control characters.)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Semi-bugfix: $element->replace_with(...) can now take LoLs in its
|
|
Packit |
16975c |
replacement list.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Bumped HTML::Element version up to 3.12 (right from 3.09)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Semi-bugfix: as_XML now doesn't use named entities in its return
|
|
Packit |
16975c |
value -- it always uses numeric entities.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added behavior: new_frow_lol can now do clever things in list
|
|
Packit |
16975c |
context.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::Tree -- added blurb for /Perl & LWP/
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::TreeBuilder -- added blurb for /Perl & LWP/
|
|
Packit |
16975c |
Also added a few tweaks to do better with XHTML parsing.
|
|
Packit |
16975c |
Added guts() and disembowel() methods, for parsing document fragments.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
TODO: desperately need to add tests to t/
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.11 2001-03-14
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Bugfix: Klaus-Georg Adams <Klaus-Georg.Adams@sap.com> reported that
|
|
Packit |
16975c |
the topmost frameset element in an HTML::TreeBuilder tree wasn't
|
|
Packit |
16975c |
getting its _parent attribute set. Fixed.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Minor bugfix: the root element of a new HTML::TreeBuilder tree was
|
|
Packit |
16975c |
missing its initial "_implicit" attribute. Fixed.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Two handy new methods in HTML::TreeBuilder:
|
|
Packit |
16975c |
* HTML::TreeBuilder->new_from_content(...)
|
|
Packit |
16975c |
* HTML::TreeBuilder->new_from_file($filename)
|
|
Packit |
16975c |
a.k.a.: HTML::TreeBuilder->new_from_file($fh)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.10 2001-03-10
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Now bundling three relevent The Perl Journal articles by me:
|
|
Packit |
16975c |
HTML::Tree::AboutObjects, HTML::Tree::AboutTrees, and
|
|
Packit |
16975c |
HTML::Tree::Scanning.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Vadims_Beilins@swh-t.lv observes that $h->push_content(LoL)
|
|
Packit |
16975c |
doesn't take care of _parent bookkeeping right. FIXED.
|
|
Packit |
16975c |
John Woffindin <john@xoren.co.nz> notes a similar bug in clone();
|
|
Packit |
16975c |
FIXED.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Adding no_space_compacting feature to TreeBuilder, at suggestion of
|
|
Packit |
16975c |
Victor Wagner <vitus@ice.ru>.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Incorporating the clever suggestion (from Martin H. Sluka,
|
|
Packit |
16975c |
<martin@sluka.de>) that $element->extract_links's returned LoL
|
|
Packit |
16975c |
should contain a third item (for the attribute name) in the
|
|
Packit |
16975c |
per-link listref. I also add a fourth item, the tagname of the
|
|
Packit |
16975c |
element.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
New method, "elementify", in HTML::TreeBuilder.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Various improvements and clarifications to the POD in
|
|
Packit |
16975c |
HTML::TreeBuilder and HTML::Element.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Some new methods in HTML::Element: "number_lists",
|
|
Packit |
16975c |
"objectify_text", and "deobjectify_text".
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::Element and HTML::TreeBuilder versions both bumped up from
|
|
Packit |
16975c |
3.08 to 3.10, to keep pace with the HTML::Tree version.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.09 2001-01-21
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Changed HTML/Element/traverse.pod to HTML/Element/traverse.pm
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Wrote overview file: HTML/Tree.pm
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.08 2000-11-03
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element and TreeBuilder: fixed handling of textarea content --
|
|
Packit |
16975c |
Thanks to Ronald J Kimball <rjk@linguist.dartmouth.edu> for
|
|
Packit |
16975c |
catching this.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: a few internal changes to make it subclassable by the
|
|
Packit |
16975c |
forthcoming XML::Element et al.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.07 2000-10-20
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: made new_from_lol accept existing HTML::Element objects
|
|
Packit |
16975c |
as part of the loltree. Thanks for Bob Glickstein
|
|
Packit |
16975c |
<bobg@zanshin.com> for the suggestion.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: feeding an arrayref to push_content, unshift_content,
|
|
Packit |
16975c |
or splice_content now implicitly calls new_from_lol.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: reversed the change in as_HTML/XML/Lisp_form that would
|
|
Packit |
16975c |
skip dumping attributes with references for values. It reacted
|
|
Packit |
16975c |
undesirably with objects that overload stringify; to wit, URI.pm
|
|
Packit |
16975c |
objects.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.06 2000-10-15
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: methods added: $x->id, $x->idf, $x->as_XML,
|
|
Packit |
16975c |
$x->as_Lisp_form
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: internal optimization: as_HTML no longer uses the
|
|
Packit |
16975c |
tag() accessor. Should cause no change in behavior.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: as_HTML (via starttag) no longer tries to dump
|
|
Packit |
16975c |
attributes whose values are references, or whose names
|
|
Packit |
16975c |
are null-string or "/". This should cause no change in
|
|
Packit |
16975c |
behavior, as there's no normal way for any document to parse
|
|
Packit |
16975c |
to a tree containing any such attributes.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: minor rewordings or typo-fixes in the POD.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.05 2000-10-02
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: fixed typo in docs for the content_refs_list method.
|
|
Packit |
16975c |
Had:
|
|
Packit |
16975c |
foreach my $item ($h->content_array_ref) {
|
|
Packit |
16975c |
Corrected to:
|
|
Packit |
16975c |
foreach my $item (@{ $h->content_array_ref }) {
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: fixed bug in $h->left that made it useless in scalar
|
|
Packit |
16975c |
context. Thanks to Toby Thurston <toby@wildfire.dircon.co.uk> for
|
|
Packit |
16975c |
spotting this.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: added new method $h->tagname_map
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In TreeBuilder: Some minor corrections to the logic of handling TD
|
|
Packit |
16975c |
and TH elements -- basically bug fixes, in response to an astute
|
|
Packit |
16975c |
bug report from Toby Thurston <toby@wildfire.dircon.co.uk>.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In TreeBuilder: Fixed lame bug that made strict-p mode nearly
|
|
Packit |
16975c |
useless. It may now approach usability!
|
|
Packit |
16975c |
|
|
Packit |
16975c |
This dist contains a simple utility called "htmltree" that parses
|
|
Packit |
16975c |
given HTML documents, and dumps their parse tree. (It's not
|
|
Packit |
16975c |
actually new in this version, but was never mentioned before.)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In TreeBuilder, a change of interest only to advanced programmers
|
|
Packit |
16975c |
familiar with TreeBuilder's source and perpetually undocumented
|
|
Packit |
16975c |
features: there is no $HTML::TreeBuilder::Debug anymore.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
If you want to throw TreeBuilder into Debug mode, you have to do it
|
|
Packit |
16975c |
at compile time -- by having a line like this BEFORE any line that
|
|
Packit |
16975c |
says "use HTML::TreeBuilder":
|
|
Packit |
16975c |
|
|
Packit |
16975c |
sub HTML::TreeBuilder::DEBUG () {3};
|
|
Packit |
16975c |
|
|
Packit |
16975c |
where "5" is whatever debug level (0 for no debug output) that you
|
|
Packit |
16975c |
want TreeBuilder to be in. All the in TreeBuilder that used to say
|
|
Packit |
16975c |
|
|
Packit |
16975c |
print "...stuff..." if $Debug > 1;
|
|
Packit |
16975c |
|
|
Packit |
16975c |
now say
|
|
Packit |
16975c |
|
|
Packit |
16975c |
print "...stuff..." if DEBUG > 1;
|
|
Packit |
16975c |
|
|
Packit |
16975c |
where DEBUG is the constant-sub whose default value set at compile
|
|
Packit |
16975c |
time is 0. The point of this is that for the typical
|
|
Packit |
16975c |
compilation-instance of TreeBuilder will run with DEBUG = 0, and
|
|
Packit |
16975c |
having that set at compile time means that all the "print ... if
|
|
Packit |
16975c |
DEBUG" can be optimized away at compile time, so they don't appear
|
|
Packit |
16975c |
in the code tree for TreeBuilder. This leads to a typical ~10%
|
|
Packit |
16975c |
speedup in TreeBuilder code, since it's no longer having to
|
|
Packit |
16975c |
constantly interrogate $Debug.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Note that if you really do NEED the debug level to vary at runtime,
|
|
Packit |
16975c |
say:
|
|
Packit |
16975c |
sub HTML::TreeBuilder::DEBUG () { $HTML::TreeBuilder::DEBUG };
|
|
Packit |
16975c |
and then change that variable's value as need be. Do this only if
|
|
Packit |
16975c |
necessary, tho.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
BTW, useful line to have in your ~/.cshrc:
|
|
Packit |
16975c |
alias deparse 'perl -MO=Deparse \!*'
|
|
Packit |
16975c |
I found it useful for deparsing TreeBuilder.pm to make sure that
|
|
Packit |
16975c |
the DEBUG-conditional statements really were optimized away
|
|
Packit |
16975c |
as I intended.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.04 2000-09-04
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In TreeBuilder: added p_strict, an option to somewhat change
|
|
Packit |
16975c |
behavior of implicating ""s.
|
|
Packit |
16975c |
Added store_comments, store_declarations, store_pis, to control
|
|
Packit |
16975c |
treatment of comments, declarations, and PIs when parsing.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
In Element: documented the pseudo-elements (~comment, ~declaration,
|
|
Packit |
16975c |
~pi, and ~literal). Corrected as_HTML dumping of ~pi elements.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Removed formfeeds from source of Element and TreeBuilder --
|
|
Packit |
16975c |
different editors (and Perl) treat them differently as far as
|
|
Packit |
16975c |
incrementing the line counter; so Perl might report an error on
|
|
Packit |
16975c |
line 314, but preceding formfeeds might make your editor think that
|
|
Packit |
16975c |
that line is actually 316 or something, resulting in confusion all
|
|
Packit |
16975c |
around. Ahwell.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.03 2000-08-26
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Introduced an optimization in TreeBuilder's logic for checking that
|
|
Packit |
16975c |
body-worthy elements are actually inserted under body. Should
|
|
Packit |
16975c |
speed things up a bit -- it saves two method calls per typical
|
|
Packit |
16975c |
start-tag. Hopefully no change in behavior.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Whoops -- 3.01's change in the return values of TreeBuilder's
|
|
Packit |
16975c |
(internal) end(...) method ended up breaking the processing of list
|
|
Packit |
16975c |
elements. Fixed. Thanks to Claus Schotten for spotting this.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Whoops 2 -- Margarit A. Nickolov spotted that TreeBuilder
|
|
Packit |
16975c |
documented a implicit_body_p_tag method, but the module didn't
|
|
Packit |
16975c |
define it. I must have deleted it some time or other. Restored.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.02 2000-08-20
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed a silly typo in Element that made delete_ignorable_whitespace
|
|
Packit |
16975c |
useless.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Made Element's $tree->dump take an optional output-filehandle
|
|
Packit |
16975c |
argument.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added (restored?) "use integer" to TreeBuilder.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
3.01 2000-08-20
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Now depends on HTML::Tagset for data tables of HTML elements and
|
|
Packit |
16975c |
their characteristics.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Version numbers for HTML::TreeBuilder and HTML::Element, as well as
|
|
Packit |
16975c |
for the package, moved forward to 3.01.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Minor changes to HTML::TreeBuilder's docs.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::TreeBuilder now knows not to amp-decode text children of
|
|
Packit |
16975c |
CDATA-parent elements. Also exceptionally stores comments under
|
|
Packit |
16975c |
CDATA-parent elements.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
TreeBuilder should now correctly parse documents with frameset
|
|
Packit |
16975c |
elements. Tricky bunch of hacks.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
TreeBuilder now ignores those pointless "x-html" tags that a
|
|
Packit |
16975c |
certain standards-flouting monopolistic American software/OS
|
|
Packit |
16975c |
company's mailer wraps its HTML in.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Introduced "tweaks" in HTML::TreeBuilder -- an experimental
|
|
Packit |
16975c |
(and quite undocumented) feature to allow specifying callbacks
|
|
Packit |
16975c |
to be called when specific elements are closed; makes possible
|
|
Packit |
16975c |
rendering (or otherwise scanning and/or manipulating) documents
|
|
Packit |
16975c |
as they are being parsed. Inspired by Michel Rodriguez's clever
|
|
Packit |
16975c |
XML::Twig module. Until I document this, email me if you're
|
|
Packit |
16975c |
interested.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::Element's as_HTML now knows not to amp-escape children of
|
|
Packit |
16975c |
CDATA-parent elements. Thanks to folks who kept reminding me about this.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::Element's as_HTML can now take an optional parameter
|
|
Packit |
16975c |
specifying which non-empty elements will get end-tags omitted.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::Element's traverse's docs moved into separate POD,
|
|
Packit |
16975c |
HTML::Element::traverse.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added HTML::Element methods all_attr_names and
|
|
Packit |
16975c |
all_external_attr_names. Fixed bug in all_external_attr.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added HTML::Element method delete_ignorable_whitespace.
|
|
Packit |
16975c |
(Actually just moved from HTML::TreeBuilder, where it was
|
|
Packit |
16975c |
undocumented, and called tighten_up.)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Adding a bit of sanity checking to Element's look_down, look_up.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added some formfeeds to the source of Element and TreeBuilder,
|
|
Packit |
16975c |
to make hardcopy a bit more readable.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.68 2000-06-28
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed doc typo for HTML::Element's lineage_tag_names method.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed lame bug in HTML::Element's all_external_attr that made it
|
|
Packit |
16975c |
quite useless. Thanks to Rich Wales <richw@webcom.com> for the bug
|
|
Packit |
16975c |
report and patch.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Changed as_text to no longer DEcode entities, as it formerly did,
|
|
Packit |
16975c |
and was documented to. Since entities are already decoded by time
|
|
Packit |
16975c |
text is stored in the tree, another decoding step is wrong. Neither
|
|
Packit |
16975c |
me nor Gisle Aas can remember what that was doing there in the
|
|
Packit |
16975c |
first place.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Changed as_text to not traverse under 'style' and 'script'
|
|
Packit |
16975c |
elements. Rewrote as_text's traverser to be iterative.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added a bit of text to HTML::AsSubs to recommend using XML::Generator.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.67 2000-06-12
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Just changes to HTML::Element...
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Introduced look_up and look_down. Thanks to the folks on the
|
|
Packit |
16975c |
libwww list for helping me find the right form for that idea.
|
|
Packit |
16975c |
Deprecated find_by_attribute
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Doc typo fixed: at one point in the discussion of "consolidating
|
|
Packit |
16975c |
text", I said push_content('Skronk') when I meant
|
|
Packit |
16975c |
unshift_content('Skronk'). Thanks to Richard Y. Kim (ryk@coho.net)
|
|
Packit |
16975c |
for pointing this out.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added left() and right() methods.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Made address([address]) accept relative addresses (".3.0.1")
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added content_array_ref and content_refs_list.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added a bit more clarification to bits of the Element docs here and there.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Made find_by_tag_name work iteratively now, for speed.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.66 2000-05-18
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@cpan.org>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Noting my new email address.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed bug in HTML::Element::detach_content -- it would return
|
|
Packit |
16975c |
empty-list, instead of returing the nodes detached.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed big in HTML::Element::replace_with_content -- it would
|
|
Packit |
16975c |
accidentally completely kill the parent's content list!
|
|
Packit |
16975c |
Thanks to Reinier Post and others for spotting this error.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed big in HTML::Element::replace_with -- it put replacers
|
|
Packit |
16975c |
in the content list of of the new parent, !but! forgot to update
|
|
Packit |
16975c |
each replacer's _parent attribute.
|
|
Packit |
16975c |
Thanks to Matt Sisk for spotting this error.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.65 2000-03-26
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@netadventure.net>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Important additions to HTML::Element :
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Totally reimplemented the traverse() method, and added features,
|
|
Packit |
16975c |
now providing a somewhat-new interface. It's still
|
|
Packit |
16975c |
backwards-compatible both syntactically and semantically.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added methods: content_list, detach_content, replace_linkage,
|
|
Packit |
16975c |
normalize_content, preinsert, postinsert, and has_insane_linkage.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
$h->attr('foo', undef) now actually deletes the attribute
|
|
Packit |
16975c |
'foo' from $h, instead of setting it to undef. Hopefully
|
|
Packit |
16975c |
this won't break any existing code!
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Rearranged the order of some sections in the Element docs
|
|
Packit |
16975c |
for purely pedagogical reasons.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Bugfix: $tree->clone failed to delete the internal
|
|
Packit |
16975c |
_head and _body attributes of the clone (used by TreeBuilder),
|
|
Packit |
16975c |
$tree->clone->delete ended up deleting most/all of the original!
|
|
Packit |
16975c |
Fixed. Added cavets to the docs warning against cloning
|
|
Packit |
16975c |
TreeBuilder objects that are in mid-parse (not that I think most
|
|
Packit |
16975c |
users are exactly rushing to do this).
|
|
Packit |
16975c |
Thanks to Bob Glickstein for finding and reporting this bug.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added some regression/sanity tests in t/
|
|
Packit |
16975c |
|
|
Packit |
16975c |
A bit more sanity checking in TreeBuilder: checks for _head and
|
|
Packit |
16975c |
_body before including it.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Modded TreeBuilder's calls to traverse() to be use new [sub{...},0]
|
|
Packit |
16975c |
calling syntax, for sake of efficiency.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added some undocumented and experimental code in Element and
|
|
Packit |
16975c |
TreeBuilder for using HTML::Element objects to represent
|
|
Packit |
16975c |
comments, PIs, declarations, and "literals".
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.64 2000-03-08
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@netadventure.net>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Bugfix: $element->replace_with_content() would cause
|
|
Packit |
16975c |
a fatal error if any of $element's content nodes were
|
|
Packit |
16975c |
text segments. Fixed.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.63 2000-03-08
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@netadventure.net>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed a typo in the SYNOPSIS of TreeBuilder.pm: I had "->destroy" for
|
|
Packit |
16975c |
"->delete"!
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added $element->clone and HTML::Element->clone_list(nodes) methods,
|
|
Packit |
16975c |
as Marek Rouchal very helpfully suggested.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
$tree->as_HTML can now indent, hopefully properly. The logic to do
|
|
Packit |
16975c |
so is pretty frightening, and regrettably doesn't wrap, and it's
|
|
Packit |
16975c |
not obvious how to make it capable of doing so.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
$tree->as_text can now take a 'skip_dels' parameter.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added $h->same_as($j) method.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added $h->all_attr method.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added $h->new_from_lol constructor method.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.62 1999-12-18
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@netadventure.net>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Incremented HTML::AsSubs version to 1.13, and HTML::Parse version
|
|
Packit |
16975c |
to 2.7, to avoid version confusion with the old (<0.60) HTML-Tree
|
|
Packit |
16975c |
dist.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Re-simplified the options to HTML::Element::traverse, removing the
|
|
Packit |
16975c |
verbose_for_text option. (The behavior that it turned on, is now
|
|
Packit |
16975c |
always on; this should not cause any problems with any existing
|
|
Packit |
16975c |
code.)
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed HTML::Element::delete_content, and made an
|
|
Packit |
16975c |
HTML::TreeBuilder::delete to override it for TreeBuilder nodes,
|
|
Packit |
16975c |
which have their own special attributes.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::Element::find_by_attribute, find_by_attribute, and get_attr_i
|
|
Packit |
16975c |
now behave differently in scalar context, if you're the sort that
|
|
Packit |
16975c |
likes context on method calls. HTML::Element::descendant is now
|
|
Packit |
16975c |
optimized in scalar context.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed up some of the reporting of lineages in some $Debug-triggered
|
|
Packit |
16975c |
messages.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fixed minor bug in updating pos when a text node under HTML
|
|
Packit |
16975c |
implicates BODY (and maybe P).
|
|
Packit |
16975c |
|
|
Packit |
16975c |
You should not use release 0.61
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.61 1999-12-15
|
|
Packit |
16975c |
Release by Sean M. Burke <sburke@netadventure.net>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Versions in this dist:
|
|
Packit |
16975c |
HTML::Parse: 2.6
|
|
Packit |
16975c |
HTML::TreeBuilder: 2.91
|
|
Packit |
16975c |
HTML::Element: 1.44
|
|
Packit |
16975c |
HTML::AsSubs: 1.12
|
|
Packit |
16975c |
|
|
Packit |
16975c |
No longer including the Formatter modules.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Lots of new methods and changes in HTML::Element; reorganized docs.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Added new HTML tags to HTML::Element's and HTML::TreeBuilder's
|
|
Packit |
16975c |
internal tables.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Reworked the logic in HTML::TreeBuilder. Previous versions dealt
|
|
Packit |
16975c |
badly with tables, and attempts to enforce content-model rules
|
|
Packit |
16975c |
occasionally went quite awry. This new version is much less
|
|
Packit |
16975c |
agressive about content-model rules, and works on the principle
|
|
Packit |
16975c |
that if the HTML source is cock-eyed, there's limits to what can be
|
|
Packit |
16975c |
done to keep the syntax tree from being cock-eyed.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
HTML::TreeBuilder now also tries to ignore ignorable whitespace.
|
|
Packit |
16975c |
The resulting parse trees often have half (or fewer) the number of
|
|
Packit |
16975c |
nodes, without all the ignorable " " nodes like before.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.53 1999-12-15
|
|
Packit |
16975c |
Release by Gisle Aas <gisle@aas.no>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Make it compatible with HTML-Parser-3.00
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.52 1999-11-10
|
|
Packit |
16975c |
Release by Gisle Aas <gisle@aas.no>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Fix SYNOPSIS for HTML::FormatText as suggested by
|
|
Packit |
16975c |
Michael G Schwern <schwern@pobox.com>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Updated my email address.
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.51 1998-07-07
|
|
Packit |
16975c |
Release by Gisle Aas <aas@sn.no>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
Avoid new warnings introduced by perl5.004_70
|
|
Packit |
16975c |
|
|
Packit |
16975c |
|
|
Packit |
16975c |
0.50 1998-04-01
|
|
Packit |
16975c |
Release by Gisle Aas <aas@sn.no>
|
|
Packit |
16975c |
|
|
Packit |
16975c |
the HTML::* modules that dealt with HTML syntax trees
|
|
Packit |
16975c |
was unbundled from libwww-perl-5.22.
|