Matt S Trout [Thu, 10 Feb 2011 18:17:01 +0000]
avoid undef errors blowing out XML::Tags
Matt S Trout [Sat, 20 Nov 2010 19:56:41 +0000]
switch to Moo
Matt S Trout [Wed, 20 Jan 2010 14:56:54 +0000]
skeleton BUILDALL support
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>
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>
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 '"', not as '"'.
This fixes a bug found in 'Escaping ok' test in t/tags.t
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
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
'"' (at least for attribute with value delimited with '"'), and
not as '"' (note missing ';').
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
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>
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>
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>
Arthur Axel 'fREW' Schmidt [Fri, 11 Dec 2009 05:16:01 +0000]
tests for html escaping (jnareb)
Arthur Axel 'fREW' Schmidt [Wed, 9 Dec 2009 00:11:08 +0000]
switch to Syntax::Keyword::Gather
Arthur Axel 'fREW' Schmidt [Sat, 5 Dec 2009 09:35:10 +0000]
Merge branch 'css_declare'
Arthur Axel 'fREW' Schmidt [Fri, 4 Dec 2009 03:10:00 +0000]
new html tag list from quackit.com/html_5/tags/
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)
Arthur Axel 'fREW' Schmidt [Thu, 3 Dec 2009 05:14:11 +0000]
better test for unimporting
Arthur Axel 'fREW' Schmidt [Tue, 1 Dec 2009 14:24:31 +0000]
Look how dumb I am
Arthur Axel 'fREW' Schmidt [Tue, 1 Dec 2009 14:24:15 +0000]
CSS::Declare works with arrays instead of arrayrefs
Arthur Axel 'fREW' Schmidt [Tue, 1 Dec 2009 05:31:52 +0000]
super basic tests for CSS::Declare, also dep
Matt S Trout [Tue, 24 Nov 2009 22:08:29 +0000]
dist files
Matt S Trout [Thu, 22 Oct 2009 18:26:20 +0000]
use overload::constant to escape attributes within <foo ...>
Matt S Trout [Thu, 22 Oct 2009 14:46:42 +0000]
rename sanitize to to_xml_string, add to_html_string
Matt S Trout [Thu, 22 Oct 2009 10:11:44 +0000]
comment this up the arseholes
Matt S Trout [Thu, 22 Oct 2009 10:09:44 +0000]
cleanup to _set_glob function
Matt S Trout [Thu, 22 Oct 2009 10:08:14 +0000]
cleanup glob override
Matt S Trout [Wed, 21 Oct 2009 18:06:09 +0000]
add sanitize sub
Matt S Trout [Wed, 21 Oct 2009 18:01:21 +0000]
make XML::Tags return scalarrefs
Matt S Trout [Wed, 21 Oct 2009 16:34:43 +0000]
basic HTML tags
Matt S Trout [Wed, 21 Oct 2009 16:14:29 +0000]
first cut of XML::Tags