Edward Z. Yang
064fd603d3
Commit TagTransform_Font and associated test-cases.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@143 48356398-32a2-884e-a903-53898d9a118a
2006-08-03 00:14:10 +00:00
Edward Z. Yang
80281dda55
Fix case-sensitivity issues for attributes. Added TokenTest. Updated TODO. Removed TagTransform::normalizeAttributes
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@142 48356398-32a2-884e-a903-53898d9a118a
2006-08-02 02:43:52 +00:00
Edward Z. Yang
145a51da5a
Move out Stage 2 docs to correct class.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@141 48356398-32a2-884e-a903-53898d9a118a
2006-08-02 02:26:01 +00:00
Edward Z. Yang
626cfc1172
Implement center, menu and dir tag transformations. Font transform pending.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@140 48356398-32a2-884e-a903-53898d9a118a
2006-08-02 02:24:03 +00:00
Edward Z. Yang
d243545142
Compat changes with earlier versions of PHP.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@139 48356398-32a2-884e-a903-53898d9a118a
2006-08-01 01:57:22 +00:00
Edward Z. Yang
f63e870300
Quality control, improve a little documentation and fix UTF-8 unfriendliness in the Generator.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@138 48356398-32a2-884e-a903-53898d9a118a
2006-08-01 00:29:38 +00:00
Edward Z. Yang
79e5cd4543
Augment test file so we can run from cli.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@137 48356398-32a2-884e-a903-53898d9a118a
2006-08-01 00:18:22 +00:00
Edward Z. Yang
9d411bd5cc
- Implement double-checking in Strategy/FixNesting.php, fixes the table bugs.
...
- Move around child definitions so they make a little more sense (rename to Custom) and also add $allow_empty property to help FixNesting.php determine whether or not to double-check.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@136 48356398-32a2-884e-a903-53898d9a118a
2006-07-31 03:04:57 +00:00
Edward Z. Yang
9c6ae16764
Massively refactored Definition, moved MakeWellFormed HTML specific code out.
...
Add table functionality for nesting, don't know how I missed that. It's still broken though.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@135 48356398-32a2-884e-a903-53898d9a118a
2006-07-31 00:15:01 +00:00
Edward Z. Yang
2b5589c884
Factor some stuff into the Definition, add more docs.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@134 48356398-32a2-884e-a903-53898d9a118a
2006-07-30 22:57:54 +00:00
Edward Z. Yang
558c49a92d
Make the definition format much more logical. Begin migrating specification docs to their respective classes.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@133 48356398-32a2-884e-a903-53898d9a118a
2006-07-30 19:11:18 +00:00
Edward Z. Yang
70bd80e66a
Added ValidateAttributes strategy and associated unit tests. Amended Generator with some sanity checks. Made Definition include all necessary definitions. Note the two elements (bdo and br) that only use coreattrs.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@132 48356398-32a2-884e-a903-53898d9a118a
2006-07-30 18:37:42 +00:00
Edward Z. Yang
bb0435bdd4
Add AttrDef_Id, as well as amend the accumulator by adding a load.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@131 48356398-32a2-884e-a903-53898d9a118a
2006-07-30 16:35:05 +00:00
Edward Z. Yang
bba0d0b77a
Remove Singleton functionality, the accumulator will just have to be passed around.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@130 48356398-32a2-884e-a903-53898d9a118a
2006-07-30 16:01:24 +00:00
Edward Z. Yang
4ab930dab4
Add IDAccumulator.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@129 48356398-32a2-884e-a903-53898d9a118a
2006-07-30 15:52:25 +00:00
Edward Z. Yang
647ff26379
Minor tweaks to documentation and Enum (case-sensitivity is now boolean).
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@128 48356398-32a2-884e-a903-53898d9a118a
2006-07-30 15:29:22 +00:00
Edward Z. Yang
f8eaedb500
Factor out definitions to a ['child'] so that we could assign the ['attr'] definitions separately.
...
Also, added AttrDef/EnumTest.php
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@127 48356398-32a2-884e-a903-53898d9a118a
2006-07-30 00:54:38 +00:00
Edward Z. Yang
4c737ab430
Commit updated spec files in preparation for attributes.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@126 48356398-32a2-884e-a903-53898d9a118a
2006-07-30 00:29:26 +00:00
Edward Z. Yang
f881061d5f
Attribute unichr().
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@125 48356398-32a2-884e-a903-53898d9a118a
2006-07-29 17:42:11 +00:00
Edward Z. Yang
9b7ad89ab5
- Added Composite and Core strategies.
...
- Added generate_mock() function for testing
- Factored out inputs/output tests to StrategyAbstractTest
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@124 48356398-32a2-884e-a903-53898d9a118a
2006-07-29 17:38:28 +00:00
Edward Z. Yang
39836fe278
Add one final "Powered" logo.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@123 48356398-32a2-884e-a903-53898d9a118a
2006-07-29 02:49:30 +00:00
Edward Z. Yang
591e14d877
Add art (fairly light-weight, only 32kb) for HTML Purifier.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@122 48356398-32a2-884e-a903-53898d9a118a
2006-07-29 02:05:07 +00:00
Edward Z. Yang
7a9d39ddcc
Better enforcement of Singleton-ness, by requiring a setup() call after instantiation.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@121 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 11:35:46 +00:00
Edward Z. Yang
a55906225a
Update docs.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@120 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 02:51:19 +00:00
Edward Z. Yang
619d5d9bc1
Migrate strategies to separate classes complete.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@119 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 02:49:37 +00:00
Edward Z. Yang
f75e8dab8c
Extract FixNestingTest from DefinitionTest.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@118 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 02:43:53 +00:00
Edward Z. Yang
63396bb076
Extract MakeWellFormedTest from DefinitionTest.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@117 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 02:41:06 +00:00
Edward Z. Yang
4c200f6bcb
Extract RemoveForeignElementsTest from Definition.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@116 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 02:33:07 +00:00
Edward Z. Yang
e768f845f4
Extract common functionality to StrategyAbstractTest.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@115 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 02:28:40 +00:00
Edward Z. Yang
219bd277e2
Add test Strategy folder to start migrating unit tests.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@114 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 02:21:53 +00:00
Edward Z. Yang
d98f1742ec
Extract FixNesting strategy from Definition object.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@113 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 01:54:25 +00:00
Edward Z. Yang
2e6a5c10b3
Add in a missing include. I'm seeing duplication...
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@112 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 01:50:41 +00:00
Edward Z. Yang
4b8a206417
Extract RemoveForeignElements strategy from Definition object.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@111 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 01:50:02 +00:00
Edward Z. Yang
8e91e841f5
Update todo.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@110 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 01:23:10 +00:00
Edward Z. Yang
dfb3d48397
Migrate DefinitionTest to use DirectLex for easier to read test-cases.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@109 48356398-32a2-884e-a903-53898d9a118a
2006-07-24 01:22:51 +00:00
Edward Z. Yang
b251c4ed86
Extract MakeWellFormed strategy from Definition object.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@108 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 23:29:12 +00:00
Edward Z. Yang
9aa2da8f9f
Commit Strategy, which will soon be splitting up the Definition file.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@107 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 23:23:14 +00:00
Edward Z. Yang
609977f9f5
Add CDATA support to the Lexers, as well as give PEARSax3 entity replacement.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@106 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 23:04:34 +00:00
Edward Z. Yang
5ce0ae7056
Implement EntityLookup and put in the Lexer. Some behavior was migrated, since it looks like it will have to be used in all Lexers, not just DirectLex (which is the only one that uses it).
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@105 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 21:07:30 +00:00
Edward Z. Yang
7268987846
Replace the HTML entity files with the XHTML files, they're the same, but being valid XML declarations they should be easier to parse.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@104 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 19:43:19 +00:00
Edward Z. Yang
5a18dad64f
Typo, space between comma and word.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@103 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 18:57:13 +00:00
Edward Z. Yang
bcc2b09ac7
Finish documenting PEARSax3, touch up the other docs. Nuke the original lexer.txt document.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@102 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 18:56:00 +00:00
Edward Z. Yang
48cf55eae4
Switch benchmark to relative percents: makes comparisons easier.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@101 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 18:18:11 +00:00
Edward Z. Yang
2fa1161d3d
- Implemented special entity conversion.
...
- Optimized and documented DirectLex.
- Rearranged test cases.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@100 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 18:13:04 +00:00
Edward Z. Yang
dc24215874
Token.php: Document the code.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@99 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 13:20:15 +00:00
Edward Z. Yang
728848c4c7
Begin adding Doxygen documentation.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@98 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 03:43:53 +00:00
Edward Z. Yang
14f481bcf6
svn:eol-style = native
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@97 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 00:11:03 +00:00
Edward Z. Yang
39c16f5cfd
svn:keywords = Id
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@96 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 00:06:34 +00:00
Edward Z. Yang
042eda0463
Hook new test file in and delete duplicated tests.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@95 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 00:03:11 +00:00
Edward Z. Yang
6a5ff6d2a9
Branch the LexerTest in order to partition DirectLex specific unit tests.
...
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@94 48356398-32a2-884e-a903-53898d9a118a
2006-07-23 00:01:11 +00:00