10 years agoreplace Makefile.PL with dist.ini
John Napiorkowski [Tue, 25 Feb 2014 15:12:01 +0000]
replace Makefile.PL with dist.ini

10 years agodev version
Simon Elliott [Thu, 28 Feb 2013 12:32:16 +0000]
dev version

10 years agobump version
Simon Elliott [Thu, 28 Feb 2013 12:20:53 +0000]
bump version

10 years agopatches from rt
Simon Elliott [Thu, 28 Feb 2013 12:18:17 +0000]
patches from rt

10 years agoclean up error
Simon Elliott [Sun, 24 Feb 2013 17:58:28 +0000]
clean up error

10 years agoupdate version
Simon Elliott [Wed, 20 Feb 2013 14:51:20 +0000]
update version

10 years agodisable broken test
Simon Elliott [Wed, 20 Feb 2013 14:23:31 +0000]
disable broken test

10 years agoimprovement
Simon Elliott [Sat, 4 Jun 2011 15:25:02 +0000]
improvement

10 years agoignore if attr doesn't exist.
Simon Elliott [Sat, 4 Jun 2011 14:17:52 +0000]
ignore if attr doesn't exist.

10 years agomerge helpers
Simon Elliott [Sat, 4 Jun 2011 12:24:43 +0000]
merge helpers
add remove_from_attribute to make remove_class actually do what it's supposed to.

10 years agoupdate docs
Simon Elliott [Fri, 20 May 2011 21:56:58 +0000]
update docs

10 years agoupdate docs.
Simon Elliott [Fri, 20 May 2011 19:57:32 +0000]
update docs.

10 years agoanother test
Simon Elliott [Fri, 20 May 2011 19:50:48 +0000]
another test

10 years agosome simple shorthand helpers.
Simon Elliott [Fri, 20 May 2011 17:48:12 +0000]
some simple shorthand helpers.

add_class
remove_class
set_class
set_id

10 years agotest for hashref support on codestream
Simon Elliott [Fri, 20 May 2011 09:33:10 +0000]
test for hashref support on codestream

10 years agoadd DESTROY methods to fix 5.14 noticing them being missing.
Simon Elliott [Fri, 20 May 2011 09:30:11 +0000]
add DESTROY methods to fix 5.14 noticing them being missing.

10 years agoalso work in streambase
Simon Elliott [Thu, 19 May 2011 17:23:07 +0000]
also work in streambase

10 years agoadditional test
Simon Elliott [Thu, 19 May 2011 16:32:52 +0000]
additional test

10 years agoSupport for hashref in AUTOLOADed methods i.e
Simon Elliott [Thu, 19 May 2011 16:23:44 +0000]
Support for hashref in AUTOLOADed methods i.e

$z->repeat_content({
  div => ['foo'],
  span => ['bar'],
})

11 years agoadd comment to tell people to stop being scared of the parser
Matt S Trout [Mon, 18 Mar 2013 15:42:57 +0000]
add comment to tell people to stop being scared of the parser

12 years agoAdd tests for parsing sections of HTML defined as containing CDATA.
David Dorward [Wed, 21 Dec 2011 18:07:54 +0000]
Add tests for parsing sections of HTML defined as containing CDATA.

12 years agoadd auto-fetch code for Distar
Matt S Trout [Mon, 25 Jul 2011 04:21:10 +0000]
add auto-fetch code for Distar

12 years agoMerge branch 'master' of git.shadowcat.co.uk:HTML-Zoom
Simon Elliott [Mon, 13 Jun 2011 12:23:55 +0000]
Merge branch 'master' of git.shadowcat.co.uk:HTML-Zoom

12 years agotest for collect on void element
Simon Elliott [Mon, 13 Jun 2011 12:23:44 +0000]
test for collect on void element

12 years agoFailing test for mixed-case attr name matching
Florian Ragwitz [Fri, 10 Jun 2011 20:20:22 +0000]
Failing test for mixed-case attr name matching

12 years ago(with skip)
Simon Elliott [Thu, 9 Jun 2011 16:31:43 +0000]
(with skip)

12 years agoremove bad test add good one
Simon Elliott [Thu, 9 Jun 2011 16:30:26 +0000]
remove bad test add good one

12 years agoapply_if doc
Simon Elliott [Thu, 9 Jun 2011 15:54:49 +0000]
apply_if doc

12 years agotests for issues with void elements.
Simon Elliott [Thu, 9 Jun 2011 14:20:37 +0000]
tests for issues with void elements.

12 years agodoc from_events.
Simon Elliott [Tue, 31 May 2011 10:43:58 +0000]
doc from_events.

12 years agodie instead
Simon Elliott [Fri, 20 May 2011 18:00:06 +0000]
die instead

12 years agodeprecate long form args
Simon Elliott [Fri, 20 May 2011 17:59:59 +0000]
deprecate long form args

12 years agoVersion 0.009006 release_0.009006
Florian Ragwitz [Fri, 20 May 2011 10:34:27 +0000]
Version 0.009006

12 years agoadd DESTROY methods to placate perl >= 5.13.1
Simon Elliott [Fri, 20 May 2011 10:21:16 +0000]
add DESTROY methods to placate perl >= 5.13.1

12 years agoVersion 0.009005 release_0.009005
Florian Ragwitz [Thu, 12 May 2011 16:50:53 +0000]
Version 0.009005

12 years agoDelete hatespace
Florian Ragwitz [Thu, 12 May 2011 16:50:24 +0000]
Delete hatespace

12 years ago- Add a failing test for meta chars in selectors
Florian Ragwitz [Thu, 5 May 2011 11:10:31 +0000]
- Add a failing test for meta chars in selectors
- Parse meta-characters in selectors
- Failing test for escaped dots in class selectors
- Unescape meta characters in css selectors
- Only unescape meta characters
- Updated Changes file

12 years agodwim selects and bugfixes, new transform_attribute method and handled trailing '...
John Napiorkowski [Fri, 22 Apr 2011 17:35:44 +0000]
dwim selects and bugfixes, new transform_attribute method and handled trailing '/' in tags better
updated changes

13 years agoChanges entry for transform_attribute
Matt S Trout [Sat, 30 Apr 2011 10:35:15 +0000]
Changes entry for transform_attribute

13 years agoadd transform_attribute, which runs a coderef on the value of an attribute, and can...
Robert Buels [Sun, 10 Apr 2011 23:30:34 +0000]
add transform_attribute, which runs a coderef on the value of an attribute, and can either add or delete the attribute as well

13 years agoreformat Changes
Matt S Trout [Thu, 24 Feb 2011 20:30:33 +0000]
reformat Changes

Add spaces in front of changes entries to bring them in line with the
rest of my projects

13 years agoadd / to excluded characters in attribute names to correctly parse <br/> etc.
Matt S Trout [Thu, 24 Feb 2011 20:10:16 +0000]
add / to excluded characters in attribute names to correctly parse <br/> etc.

for <br/>, the '/' was being interpreted as the attribute string so
$in_place_close wasn't being set. Adding / to the exclusion list fixes this.

13 years agodelete t/bugs/void_element.t - invalid test
Matt S Trout [Thu, 24 Feb 2011 20:07:52 +0000]
delete t/bugs/void_element.t - invalid test

This test file attempts to verify behaviour where tags are not closed; while
Zoom is designed primarily for HTML it specialises in XHTMLish HTML and as such
I don't really see a need to make this work.

If we were to support mangled HTML, we'd probably want to sit down and think
seriously about what rules to provide - we could inject missing close tag
events but I suspect that would require some bookkeeping to do sensibly.

13 years agoRelease commit for 0.009004 release_0.009004
Matt S Trout [Mon, 14 Feb 2011 22:09:49 +0000]
Release commit for 0.009004

13 years agomore Changes cleanup
Matt S Trout [Mon, 14 Feb 2011 22:02:42 +0000]
more Changes cleanup

13 years agoclean up POD
Matt S Trout [Mon, 14 Feb 2011 21:34:57 +0000]
clean up POD

13 years agorecursive testing, fixup prereqs
Matt S Trout [Mon, 14 Feb 2011 21:34:39 +0000]
recursive testing, fixup prereqs

13 years agotodo bug tests
Matt S Trout [Mon, 14 Feb 2011 21:29:16 +0000]
todo bug tests

13 years agocleanup Changes formatting
Matt S Trout [Mon, 14 Feb 2011 21:29:08 +0000]
cleanup Changes formatting

13 years agoModule::Install -> Distar
Matt S Trout [Mon, 14 Feb 2011 19:49:28 +0000]
Module::Install -> Distar

13 years agofix bug where first event isn't passed to filter during collect w/out inside
Matt S Trout [Mon, 14 Feb 2011 19:11:04 +0000]
fix bug where first event isn't passed to filter during collect w/out inside

13 years agoadd strictures commit (out of order)
Matt S Trout [Mon, 14 Feb 2011 19:05:04 +0000]
add strictures commit (out of order)

13 years agoMerge branch 'master' of git://git.shadowcat.co.uk/catagits/HTML-Zoom
Simon Elliott [Mon, 31 Jan 2011 16:34:44 +0000]
Merge branch 'master' of git://git.shadowcat.co.uk/catagits/HTML-Zoom

13 years agoAdded apply_if to only run an apply block if a predicate is true
Oliver Charles [Fri, 28 Jan 2011 15:33:55 +0000]
Added apply_if to only run an apply block if a predicate is true

13 years agoMerge branch 'documentation'
Jakub Narebski [Mon, 24 Jan 2011 20:02:39 +0000]
Merge branch 'documentation'

13 years agoDocumenting HTML::Zoom::FilterBuilder further
Jakub Narebski [Mon, 24 Jan 2011 13:27:34 +0000]
Documenting HTML::Zoom::FilterBuilder further

Only prepend_contents and append_contents are not documented at all.
Note also that documentation migh not fit actual current behavior!!!

13 years agoHTML::Zoom::FilterBuilder: =head2 sections should not contain args
Jakub Narebski [Mon, 24 Jan 2011 12:44:31 +0000]
HTML::Zoom::FilterBuilder: =head2 sections should not contain args

The reason for this is being able to link to <manpage>#set_attribute
via L</set_attribute> or L<HTML::Zoom::FilterBuilder/set_attribute>.

Requested-by: Matt S Trout <mst@shadowcat.co.uk>

13 years agoImprove [attr~="value"] selector (attribute contains word)
Jakub Narebski [Mon, 24 Jan 2011 12:04:33 +0000]
Improve [attr~="value"] selector (attribute contains word)

Instead of first splitting attribute value into words, and then
checking that one of words is equal to given value

   grep { $_ eq $value } split ' ', $attr;

use regexp anchored to words boundary for word matching

   /\b\Q$value\E\b/

Strictly speaking it makes [attr=~"value"] selector not conformant to
CSS2+ specification, but it shouldn't matter in real life.  See
http://www.w3.org/TR/CSS2/selector.html#attribute-selectors

  [att~=val]

     [..] If "val" contains white space, it will never represent anything
     (since the words are separated by spaces). If "val" is the empty
     string, it will never represent anything either.

Suggested-by: Matt S Trout <mst@shadowcat.co.uk>

13 years agoAdd test for 'flush_before' option
Jakub Narebski [Mon, 10 Jan 2011 13:35:06 +0000]
Add test for 'flush_before' option

'flush_before' is actually option to ->collect() filter, which
underlies the ->replace() and ->repeat() filters.

Working version of example code from HTML::Zoom manpage (search for
'flush_before') is used in this test.

13 years agoAdd indirect test of '*' all match selector
Jakub Narebski [Sun, 9 Jan 2011 13:59:44 +0000]
Add indirect test of '*' all match selector

13 years agoAdd support for [attr|="value"] selector (prefix selector)
Jakub Narebski [Sun, 9 Jan 2011 13:27:44 +0000]
Add support for [attr|="value"] selector (prefix selector)

http://www.w3.org/TR/css3-selectors/#attribute-selectors
http://www.w3.org/TR/CSS2/selector.html#attribute-selectors
http://api.jquery.com/attribute-contains-prefix-selector/

  Description: Selects elements that have the specified attribute with
  a value either equal to a given string or starting with that string
  followed by a hyphen (-).

  This selector was introduced into the CSS specification to handle
  language attributes.

Note that this selector is primarily intended to allow language
subcode matches (e.g., the `hreflang` attribute on the <a> element in
HTML; for `lang` or `xml:lang` attribute there is `:lang`
pseudo-class selector).

13 years agoAdd support for [attr!="value"] selector (attribute not equal)
Jakub Narebski [Sun, 9 Jan 2011 13:09:20 +0000]
Add support for [attr!="value"] selector (attribute not equal)

http://api.jquery.com/attribute-not-equal-selector/

  Description: Select elements that either don't have the specified
  attribute, or do have the specified attribute but not with a certain
  value.

  This selector is equivalent to :not([attr="value"]).

13 years agoTurn pod-ed out failing tests in t/selector.t into todo tests
Jakub Narebski [Sun, 9 Jan 2011 12:44:11 +0000]
Turn pod-ed out failing tests in t/selector.t into todo tests

Descendant selectors ('elem1 elem2') doesn't work yet.  The code was
"commented out"; turn it into TODO tests, taking into account the fact
that HTML::Zoom::SelectorBuilder dies on selectors it doesn't support.

While at if fix typo in failing test.

13 years agoAdd support for [attr~="value"] selector (attribute contains word)
Jakub Narebski [Sun, 9 Jan 2011 12:31:36 +0000]
Add support for [attr~="value"] selector (attribute contains word)

http://www.w3.org/TR/CSS2/selector.html#attribute-selectors
http://api.jquery.com/attribute-contains-word-selector/

  This selector matches the test string against each word in the
  attribute value, where a "word" is defined as a string delimited by
  whitespace.  The selector matches if the test string is exactly equal
  to any of the words.

13 years agotest for broken void elements
Simon Elliott [Wed, 17 Nov 2010 10:22:41 +0000]
test for broken void elements

13 years agoAdded test to demonstrate bug
Joe Higton [Sat, 16 Oct 2010 23:41:28 +0000]
Added test to demonstrate bug

13 years agoCatch unmatched "[" in selector parser with a helpful error
Joe Higton [Wed, 13 Oct 2010 07:33:41 +0000]
Catch unmatched "[" in selector parser with a helpful error

13 years agodebugging code
Matt S Trout [Tue, 12 Oct 2010 15:48:42 +0000]
debugging code

13 years agoChange log for the next release (first attempt)
Joe Higton [Mon, 11 Oct 2010 16:54:19 +0000]
Change log for the next release (first attempt)

13 years agoTest to show bad error message on malformed selector
Joe Higton [Mon, 11 Oct 2010 16:08:36 +0000]
Test to show bad error message on malformed selector

13 years agomake FilterStream and MappedStream sensitive to being peeked so they peek the next...
Matt S Trout [Sun, 10 Oct 2010 18:56:56 +0000]
make FilterStream and MappedStream sensitive to being peeked so they peek the next stream up instead of next-ing it

13 years agomark todo-repeat.t as broken to prevent test fails
Matt S Trout [Sun, 10 Oct 2010 09:04:34 +0000]
mark todo-repeat.t as broken to prevent test fails

13 years agofixup todo-forms.t and rename to forms.t (now works)
Matt S Trout [Sun, 10 Oct 2010 09:00:33 +0000]
fixup todo-forms.t and rename to forms.t (now works)

13 years agorename span from todo since it now works
Matt S Trout [Sun, 10 Oct 2010 08:53:46 +0000]
rename span from todo since it now works

13 years agotrying to make the documentation a little more straightforward to setup
John Napiorkowski [Mon, 4 Oct 2010 16:17:48 +0000]
trying to make the documentation a little more straightforward to setup

13 years agoadded more docs
John Napiorkowski [Fri, 1 Oct 2010 01:41:31 +0000]
added more docs

13 years agostarted to fill out the set_attribute stub
John Napiorkowski [Thu, 30 Sep 2010 02:34:12 +0000]
started to fill out the set_attribute stub

13 years agoadd VERSION to Zoom.pM
Matt S Trout [Mon, 27 Sep 2010 19:12:18 +0000]
add VERSION to Zoom.pM

13 years agoMakefile.PL
Matt S Trout [Mon, 27 Sep 2010 19:11:13 +0000]
Makefile.PL

13 years agorevert this shit
John Napiorkowski [Mon, 27 Sep 2010 17:44:59 +0000]
revert this shit

13 years agostarting to work down the list of methods and figuring out what does what
John Napiorkowski [Sat, 25 Sep 2010 00:04:45 +0000]
starting to work down the list of methods and figuring out what does what

13 years agochanged add_attribute to add_to_attribute
John Napiorkowski [Fri, 24 Sep 2010 19:49:55 +0000]
changed add_attribute to add_to_attribute

13 years agoremoved accidentally added whitespace
John Napiorkowski [Fri, 24 Sep 2010 01:40:28 +0000]
removed accidentally added whitespace

13 years agomade the new FilterBuilder synopsis pass its test
John Napiorkowski [Fri, 24 Sep 2010 01:39:25 +0000]
made the new FilterBuilder synopsis pass its test

13 years agook now I am moving things around for no good reason...
John Napiorkowski [Fri, 24 Sep 2010 01:15:57 +0000]
ok now I am moving things around for no good reason...

13 years agoI am synopsis extractor!
John Napiorkowski [Fri, 24 Sep 2010 01:13:49 +0000]
I am synopsis extractor!

13 years agoI am synopsis extractor!
John Napiorkowski [Fri, 24 Sep 2010 01:12:38 +0000]
I am synopsis extractor!

13 years agomore steroids
John Napiorkowski [Fri, 24 Sep 2010 00:41:49 +0000]
more steroids

13 years agosynopsis extractor on steroids
John Napiorkowski [Fri, 24 Sep 2010 00:16:07 +0000]
synopsis extractor on steroids

13 years agosynopsis extractor on steroids
John Napiorkowski [Fri, 24 Sep 2010 00:15:16 +0000]
synopsis extractor on steroids

13 years agoremove stuff from synopsis that does not directly related to the example given
John Napiorkowski [Thu, 23 Sep 2010 02:59:39 +0000]
remove stuff from synopsis that does not directly related to the example given

13 years agogot going on docs and a start on a reasonable synopsis
John Napiorkowski [Thu, 23 Sep 2010 02:55:20 +0000]
got going on docs and a start on a reasonable synopsis

13 years agofurther stubbing of methods
John Napiorkowski [Wed, 22 Sep 2010 21:39:50 +0000]
further stubbing of methods

13 years agostubbed out HZ:FB
John Napiorkowski [Wed, 22 Sep 2010 21:35:04 +0000]
stubbed out HZ:FB

13 years agoadded licensing and footer pod info to the prime pod doc so that we can refer to...
John Napiorkowski [Wed, 22 Sep 2010 21:34:36 +0000]
added licensing and footer pod info to the prime pod doc so that we can refer to it all the time

13 years agothe \G? means that the string in theory always matches - 5.10 terminates, 5.8 doesn...
Matt S Trout [Sat, 21 Aug 2010 22:53:45 +0000]
the \G? means that the string in theory always matches - 5.10 terminates, 5.8 doesn't - fixing the regexp to not be overly clever eliminates the problem

13 years agofactor out from_events and to_events
Matt S Trout [Thu, 1 Jul 2010 21:41:10 +0000]
factor out from_events and to_events

13 years agoshallow copy event hashes for is_in_place_close handling in replace
Matt S Trout [Thu, 1 Jul 2010 06:21:16 +0000]
shallow copy event hashes for is_in_place_close handling in replace

13 years agomake then() work on streams and fix up replace_content on in_place_close elements
Matt S Trout [Thu, 1 Jul 2010 06:12:28 +0000]
make then() work on streams and fix up replace_content on in_place_close elements

13 years agofinish converting from MatchWithoutFilter to TransformBuilder
Matt S Trout [Thu, 1 Jul 2010 04:46:39 +0000]
finish converting from MatchWithoutFilter to TransformBuilder