13 years agoavoid undef errors blowing out XML::Tags
Matt S Trout [Thu, 10 Feb 2011 18:17:01 +0000]
avoid undef errors blowing out XML::Tags

13 years agoswitch to Moo
Matt S Trout [Sat, 20 Nov 2010 19:56:41 +0000]
switch to Moo

14 years agoskeleton BUILDALL support
Matt S Trout [Wed, 20 Jan 2010 14:56:54 +0000]
skeleton BUILDALL support

14 years agot/tags.t: HTML comments ok
Jakub Narebski [Wed, 16 Dec 2009 21:18:30 +0000]
t/tags.t: HTML comments ok

Check that HTML comments, <!-- comment -->, work correctly.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agot/tags.t: HTML tags which conflict with Perl built-ins ok
Jakub Narebski [Wed, 16 Dec 2009 21:12:23 +0000]
t/tags.t: HTML tags which conflict with Perl built-ins ok

Check that tags which conflict with built-in Perl functions or
operators correctly: tested for <link>, <tr> and <sub> elements.

While at it check that <elem ... /> form for elements without closing
tag, like <link> element, works correctly.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agoFix escaping of '"' in XML::Tags::to_xml_string
Jakub Narebski [Wed, 16 Dec 2009 10:57:27 +0000]
Fix escaping of '"' in XML::Tags::to_xml_string

Double quote ('"') should be escaped as '&quot;', not as '&quot'.
This fixes a bug found in 'Escaping ok' test in t/tags.t

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agot/tags.t: Test escaping of attributes more extensively
Jakub Narebski [Tue, 15 Dec 2009 21:27:11 +0000]
t/tags.t: Test escaping of attributes more extensively

Test escaping of attributes of XML element not only for '&', but also
for '<', '>' and '"'.

Test currently fails for escaping '"', which should be escaped as
'&quot;' (at least for attribute with value delimited with '"'), and
not as '&quot' (note missing ';').

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agot/tags.t: Test that Document Type Declaration (DTD or doctype) works
Jakub Narebski [Tue, 15 Dec 2009 13:47:36 +0000]
t/tags.t: Test that Document Type Declaration (DTD or doctype) works

HTML documents are required to start with a Document Type Declaration
(informally, a 'doctype'). In browsers, the function of the doctype is
to indicate the rendering mode - particularly to avoid the quirks
mode.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agot/tags.t: Test that XML processing instruction (<?xml ... ?>) works
Jakub Narebski [Sat, 12 Dec 2009 21:59:56 +0000]
t/tags.t: Test that XML processing instruction (<?xml ... ?>) works

We want to be able to e.g. put '<?xml version="1.0" encoding="UTF-8"?>'
XML declaration at the top of XHTML file.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agot/tags.t: Test of automatic escaping of user data
Jakub Narebski [Fri, 11 Dec 2009 01:54:52 +0000]
t/tags.t: Test of automatic escaping of user data

Test that user data passed to XML::Tags::to_xml_string is automatically escaped
(to protect against cross-side scripting attacks), and that mechanism to turned
automatic off escaping works.

This test can also serve as example on how to turn off autoescaping of user
data.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agotests for html escaping (jnareb)
Arthur Axel 'fREW' Schmidt [Fri, 11 Dec 2009 05:16:01 +0000]
tests for html escaping (jnareb)

14 years agoswitch to Syntax::Keyword::Gather
Arthur Axel 'fREW' Schmidt [Wed, 9 Dec 2009 00:11:08 +0000]
switch to Syntax::Keyword::Gather

14 years agoMerge branch 'css_declare'
Arthur Axel 'fREW' Schmidt [Sat, 5 Dec 2009 09:35:10 +0000]
Merge branch 'css_declare'

14 years agonew html tag list from http://www.quackit.com/html_5/tags/
Arthur Axel 'fREW' Schmidt [Fri, 4 Dec 2009 03:10:00 +0000]
new html tag list from quackit.com/html_5/tags/

14 years agoadd lots of CSS properties (http://www.eskimo.com/~bloo/indexdot/css/propindex/all...
Arthur Axel 'fREW' Schmidt [Thu, 3 Dec 2009 05:38:18 +0000]
add lots of CSS properties (eskimo.com/~bloo/indexdot/css/propindex/all.htm)

14 years agobetter test for unimporting
Arthur Axel 'fREW' Schmidt [Thu, 3 Dec 2009 05:14:11 +0000]
better test for unimporting

14 years agoLook how dumb I am
Arthur Axel 'fREW' Schmidt [Tue, 1 Dec 2009 14:24:31 +0000]
Look how dumb I am

14 years agoCSS::Declare works with arrays instead of arrayrefs
Arthur Axel 'fREW' Schmidt [Tue, 1 Dec 2009 14:24:15 +0000]
CSS::Declare works with arrays instead of arrayrefs

14 years agosuper basic tests for CSS::Declare, also dep
Arthur Axel 'fREW' Schmidt [Tue, 1 Dec 2009 05:31:52 +0000]
super basic tests for CSS::Declare, also dep

14 years agodist files
Matt S Trout [Tue, 24 Nov 2009 22:08:29 +0000]
dist files

14 years agouse overload::constant to escape attributes within <foo ...>
Matt S Trout [Thu, 22 Oct 2009 18:26:20 +0000]
use overload::constant to escape attributes within <foo ...>

14 years agorename sanitize to to_xml_string, add to_html_string
Matt S Trout [Thu, 22 Oct 2009 14:46:42 +0000]
rename sanitize to to_xml_string, add to_html_string

14 years agocomment this up the arseholes
Matt S Trout [Thu, 22 Oct 2009 10:11:44 +0000]
comment this up the arseholes

14 years agocleanup to _set_glob function
Matt S Trout [Thu, 22 Oct 2009 10:09:44 +0000]
cleanup to _set_glob function

14 years agocleanup glob override
Matt S Trout [Thu, 22 Oct 2009 10:08:14 +0000]
cleanup glob override

14 years agoadd sanitize sub
Matt S Trout [Wed, 21 Oct 2009 18:06:09 +0000]
add sanitize sub

14 years agomake XML::Tags return scalarrefs
Matt S Trout [Wed, 21 Oct 2009 18:01:21 +0000]
make XML::Tags return scalarrefs

14 years agobasic HTML tags
Matt S Trout [Wed, 21 Oct 2009 16:34:43 +0000]
basic HTML tags

14 years agofirst cut of XML::Tags
Matt S Trout [Wed, 21 Oct 2009 16:14:29 +0000]
first cut of XML::Tags