9 years agogetting things synced up for a release master 0.009009
John Napiorkowski [Fri, 15 May 2015 18:59:08 +0000]
getting things synced up for a release

10 years agomerge
Simon Elliott [Mon, 10 Mar 2014 17:50:37 +0000]
merge

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

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

11 years agomerge
Simon Elliott [Thu, 28 Feb 2013 12:26:25 +0000]
merge

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

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

11 years agoname release_0.009007
Simon Elliott [Sun, 24 Feb 2013 17:59:13 +0000]
name

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

11 years agomerge allocate
Simon Elliott [Wed, 20 Feb 2013 14:51:45 +0000]
merge

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

11 years agodisable broken test release_0.009007_1
Simon Elliott [Wed, 20 Feb 2013 14:23:31 +0000]
disable broken test

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.

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

13 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

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

13 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

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

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

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

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

13 years agoimprovement people/purge/autoload_hashref
Simon Elliott [Sat, 4 Jun 2011 15:25:02 +0000]
improvement

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

13 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.

13 years agomerge helpers
Simon Elliott [Sat, 4 Jun 2011 11:43:45 +0000]
merge helpers

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

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

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

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

13 years agosupport for hashref in set_attribute + add_to_attribute
Simon Elliott [Fri, 20 May 2011 19:44:16 +0000]
support for hashref in set_attribute + add_to_attribute

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

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

13 years agosome simple shorthand helpers. people/purge/helper_accessors
Simon Elliott [Fri, 20 May 2011 17:48:12 +0000]
some simple shorthand helpers.

add_class
remove_class
set_class
set_id

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

13 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

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

13 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.

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

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

13 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'],
})

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

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

13 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

13 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.

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

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

14 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

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

14 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)

14 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

14 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

14 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

14 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)

14 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

14 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