12 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

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

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

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

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

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

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

12 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

13 years agomove to TransformBuilder in Zoom
Matt S Trout [Thu, 1 Jul 2010 04:03:30 +0000]
move to TransformBuilder in Zoom

13 years agomove transform usage a layer out
Matt S Trout [Thu, 1 Jul 2010 03:22:57 +0000]
move transform usage a layer out

13 years agofactor out application of a match+filter to a stream into a Transform object
Matt S Trout [Thu, 1 Jul 2010 02:31:53 +0000]
factor out application of a match+filter to a stream into a Transform object

13 years agofactor out ArrayStream, update new stream types to respect peek
Matt S Trout [Fri, 28 May 2010 19:03:18 +0000]
factor out ArrayStream, update new stream types to respect peek

13 years agofactor some code-based stream types out into classes
Matt S Trout [Fri, 28 May 2010 12:10:55 +0000]
factor some code-based stream types out into classes

13 years agoclean up and fix selector parser code to match improved tests
Matt S Trout [Fri, 28 May 2010 10:36:18 +0000]
clean up and fix selector parser code to match improved tests

13 years agoextend selector tests to check negative as well as positive
Matt S Trout [Fri, 28 May 2010 10:35:25 +0000]
extend selector tests to check negative as well as positive

13 years agoImproved selector parsing.
Joe Higton [Thu, 27 May 2010 14:51:31 +0000]
Improved selector parsing.

Mostly: treating each selection clause seperately instead of having special cases for each el + attribute combination

13 years agoMake more tests pass
Arthur Axel 'fREW' Schmidt [Thu, 27 May 2010 15:25:40 +0000]
Make more tests pass

13 years agoCommit tests
Arthur Axel 'fREW' Schmidt [Thu, 27 May 2010 15:19:50 +0000]
Commit tests

13 years agoRefactor for cleaner do blocks
Arthur Axel 'fREW' Schmidt [Thu, 27 May 2010 15:31:23 +0000]
Refactor for cleaner do blocks

13 years agoE[attr*="foo"]
Arthur Axel 'fREW' Schmidt [Mon, 12 Apr 2010 05:45:18 +0000]
E[attr*="foo"]

13 years agoE[attr$="foo"]
Arthur Axel 'fREW' Schmidt [Mon, 12 Apr 2010 05:44:11 +0000]
E[attr$="foo"]

13 years agoE[attr] and E[attr^="foo"]
Arthur Axel 'fREW' Schmidt [Mon, 12 Apr 2010 05:42:35 +0000]
E[attr] and E[attr^="foo"]

13 years agoE[attr~="foo"]
Arthur Axel 'fREW' Schmidt [Mon, 12 Apr 2010 05:36:59 +0000]
E[attr~="foo"]

13 years agoE[attr="foo"]
Arthur Axel 'fREW' Schmidt [Sun, 11 Apr 2010 07:54:34 +0000]
E[attr="foo"]

13 years agoE#id
Arthur Axel 'fREW' Schmidt [Sun, 11 Apr 2010 07:38:27 +0000]
E#id

13 years agoE.class
Arthur Axel 'fREW' Schmidt [Thu, 27 May 2010 15:27:13 +0000]
E.class

13 years agomake comments and doctypes get passed through
Matt S Trout [Wed, 26 May 2010 19:51:55 +0000]
make comments and doctypes get passed through

13 years agorevert code stream change - caused an infinite loop
Matt S Trout [Wed, 26 May 2010 19:51:45 +0000]
revert code stream change - caused an infinite loop

13 years agofix as_stream typo to to_stream
Matt S Trout [Mon, 24 May 2010 20:22:57 +0000]
fix as_stream typo to to_stream

14 years agoFailing test for doctypes.
Oliver Charles [Wed, 24 Mar 2010 23:38:51 +0000]
Failing test for doctypes.

Failing test by purge, I have reverted the changes to synopsis.t
though.

14 years agodoctype test
Simon Elliott [Wed, 24 Mar 2010 20:17:33 +0000]
doctype test

14 years agoAdded failing tests
Oliver Charles [Sun, 21 Mar 2010 18:18:55 +0000]
Added failing tests

14 years agofirst cut at docs for Zoom.pm
Matt S Trout [Wed, 17 Mar 2010 21:34:00 +0000]
first cut at docs for Zoom.pm

14 years agoTemplate::Tiny support for text filtering
markie [Mon, 22 Feb 2010 04:36:56 +0000]
Template::Tiny support for text filtering

14 years agorefactor slightly and clean up selector code a bit
Matt S Trout [Sat, 20 Feb 2010 22:34:05 +0000]
refactor slightly and clean up selector code a bit

14 years agofew extra utility routines
Matt S Trout [Fri, 19 Feb 2010 21:47:13 +0000]
few extra utility routines