Edward Z. Yang
|
4f0a5c0e22
|
- Add Test namespace
- Further fix the no iconv problem, and extend test cases to cover that case.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@368 48356398-32a2-884e-a903-53898d9a118a
|
2006-09-01 16:54:23 +00:00 |
|
Edward Z. Yang
|
fdd583253c
|
Fixed rejection of case-insensitive configuration values when there is a set of allowed values. This manifested in %Core.Encoding.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@367 48356398-32a2-884e-a903-53898d9a118a
|
2006-09-01 16:40:14 +00:00 |
|
Edward Z. Yang
|
6de42d8d1d
|
Attempt to fix strange foreach troubles.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@364 48356398-32a2-884e-a903-53898d9a118a
|
2006-09-01 16:17:56 +00:00 |
|
Edward Z. Yang
|
709a17a504
|
Add shutup operator to iconv and utf_* calls.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@357 48356398-32a2-884e-a903-53898d9a118a
|
2006-09-01 15:01:27 +00:00 |
|
Edward Z. Yang
|
0e715bdda6
|
Fix PHP 5.0 bug involving isset and DOM.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@354 48356398-32a2-884e-a903-53898d9a118a
|
2006-09-01 14:44:50 +00:00 |
|
Edward Z. Yang
|
f4f636a09c
|
Add rudimentary extra encoding support. We are now release-ready!
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@352 48356398-32a2-884e-a903-53898d9a118a
|
2006-09-01 00:54:38 +00:00 |
|
Edward Z. Yang
|
b621602ac1
|
Speed up cleanUTF8 with iconv. Also factored out code point to character code.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@351 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-31 22:25:48 +00:00 |
|
Edward Z. Yang
|
14aeafcf22
|
De-singleton-ized (HTML|CSS)Definition, tying them to the configuration and making them more amenable to changes.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@350 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-31 20:33:07 +00:00 |
|
Edward Z. Yang
|
0ac97774d4
|
More refactoring: bundling charset and entity stuff together makes little sense, so new HTMLPurifier/EntityParser.php.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@341 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-30 02:21:39 +00:00 |
|
Edward Z. Yang
|
89376a11e3
|
Remove a huge swath of duplicated function calls by factoring them into a normalize() function. Also made DirectLex's variable names consistent with the rest of the classes.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@340 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-29 20:05:26 +00:00 |
|
Edward Z. Yang
|
1de3088276
|
Refactor encoding and entity specific processing to HTMLPurifier_Encoder. We also need to refactor the escaping to this class too.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@339 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-29 19:36:40 +00:00 |
|
Edward Z. Yang
|
670d298a87
|
Implement list-style shorthand. Also, updated devnetwork.html with more recent threads.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@337 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-29 02:01:58 +00:00 |
|
Edward Z. Yang
|
784e7356d1
|
Fix missing inheritance declaration.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@336 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-28 20:29:36 +00:00 |
|
Edward Z. Yang
|
dd1b911183
|
Implement limited CSS property background, can only do colors (though this is desired behavior).
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@332 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-28 20:10:01 +00:00 |
|
Edward Z. Yang
|
7588068b7b
|
Hacky full docuement parse thingy removed from DOMLex, fixes barfing on full HTML documents.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@328 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-27 22:06:58 +00:00 |
|
Edward Z. Yang
|
24cde9c891
|
Revamp configuration files so that more rules can be added, internal organization is more logical, and descriptions are captured.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@327 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-27 18:49:16 +00:00 |
|
Edward Z. Yang
|
0d4ee2ba37
|
Fix call-time pass by reference typos.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@326 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-27 02:08:50 +00:00 |
|
Edward Z. Yang
|
78414abafd
|
Implement all useful table properties.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@325 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-27 01:45:23 +00:00 |
|
Edward Z. Yang
|
692a9abc0f
|
Implement shorthand CSS property border.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@324 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-27 00:49:34 +00:00 |
|
Edward Z. Yang
|
ffe39d7f30
|
Basic color keywords translated into hexadecimal values.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@323 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-27 00:35:57 +00:00 |
|
Edward Z. Yang
|
80e79d906a
|
Implement CSS property Font.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@321 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-27 00:11:13 +00:00 |
|
Edward Z. Yang
|
dcec92e7b3
|
Fix bug: number spans should not allow zero as a value. This required augmenting HTMLPurifier/AttrDef/Integer.php to have a richer negative/zero/positive specification interface that can be extrapolated to Number and friends.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@318 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-25 02:48:49 +00:00 |
|
Edward Z. Yang
|
f46b15cb82
|
Document fact that inherit only works when its alone.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@315 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-23 02:11:04 +00:00 |
|
Edward Z. Yang
|
f8839d56a0
|
Add missing extends.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@313 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-21 00:36:36 +00:00 |
|
Edward Z. Yang
|
fb08b9c89b
|
Document URISchemes, this completes internal API documentation.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@311 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-20 22:06:11 +00:00 |
|
Edward Z. Yang
|
f7760c8cb6
|
Document Strategies.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@310 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-20 21:59:41 +00:00 |
|
Edward Z. Yang
|
7813e79bda
|
Document all AttrTransforms.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@309 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-20 21:55:28 +00:00 |
|
Edward Z. Yang
|
314a48373c
|
Document all AttrDefs, also remove duplicant NumberSpan in favor of Integer.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@308 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-20 21:47:15 +00:00 |
|
Edward Z. Yang
|
ca0914789c
|
Fix syntax error.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@307 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-20 21:39:22 +00:00 |
|
Edward Z. Yang
|
2605257723
|
Finish documentation for all base classes.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@306 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-20 20:59:13 +00:00 |
|
Edward Z. Yang
|
37cbdc25b1
|
Document core classes up to EntityLookup.php
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@304 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-19 23:06:59 +00:00 |
|
Edward Z. Yang
|
973cc43b64
|
Malformed UTF-8 and non-SGML character detection and cleaning implemented
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@303 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-19 17:53:59 +00:00 |
|
Edward Z. Yang
|
53808ee34a
|
Attempt to fix inconsistent DOM behavior regarding insertion of P tags.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@302 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-19 16:24:17 +00:00 |
|
Edward Z. Yang
|
2eef708557
|
Fix syntax error.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@301 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-19 00:26:33 +00:00 |
|
Edward Z. Yang
|
42ba96e2de
|
Put in cleanUTF8 function, currently unused but will be adapted for our needs.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@300 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-18 20:06:40 +00:00 |
|
Edward Z. Yang
|
a33cd12f1a
|
Fixed broken multibyte numeric entity conversion in Lexer::substituteNonSpecialEntities()
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@299 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-18 17:49:33 +00:00 |
|
Edward Z. Yang
|
4c52e42189
|
Fix typo: $attributes to $attr.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@296 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-18 01:27:14 +00:00 |
|
Edward Z. Yang
|
66ddc4cc5a
|
Add lots of documentation.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@293 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-17 20:29:34 +00:00 |
|
Edward Z. Yang
|
1cadb08fbb
|
Commit IPv6 fix, with majoring factoring out. Thank you Feyd!
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@284 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-17 01:05:35 +00:00 |
|
Edward Z. Yang
|
ed7e72f2e3
|
Commit FontFamily implementation. It's a little flaky, but should be reasonable for 99% of all fonts.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@282 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-16 17:25:25 +00:00 |
|
Edward Z. Yang
|
cb463f9676
|
Commit text-decoration implementation.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@280 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-16 15:12:48 +00:00 |
|
Edward Z. Yang
|
3422378c32
|
Implement all "Multiple" CSS properties.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@273 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-16 01:39:06 +00:00 |
|
Edward Z. Yang
|
2d28380763
|
Commit Multiple AttrDef, forms scaffolding for a few more CSS properties.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@272 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-16 00:34:37 +00:00 |
|
Edward Z. Yang
|
1388beb456
|
Implement all composite CSS definitions.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@271 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-16 00:18:58 +00:00 |
|
Edward Z. Yang
|
0da17072d1
|
Change unacceptable value default behavior to drop silently.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@269 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-15 23:58:18 +00:00 |
|
Edward Z. Yang
|
38e0485fcd
|
Prevent image crash attacks.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@268 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-15 22:53:12 +00:00 |
|
Edward Z. Yang
|
5690c9e0a2
|
Further optimization: 20% - 12%. Also fixed broken benchmarks.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@266 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-15 21:19:45 +00:00 |
|
Edward Z. Yang
|
acd7ceb940
|
Major optimization on tokenizeDOM(), reduce execution time from 75% to 20% by passing tokens by reference and using a token factory.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@265 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-15 20:19:16 +00:00 |
|
Edward Z. Yang
|
9a35dfa6b9
|
Add support for full document parsing, aka discard everything that's not in-between body if applicable.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@258 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-15 00:53:24 +00:00 |
|
Edward Z. Yang
|
d7140f2e05
|
Outfit a bunch of other classes so they can accept a configuration object. Put in basic scaffolding for extractBody() functionality.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@257 48356398-32a2-884e-a903-53898d9a118a
|
2006-08-15 00:31:12 +00:00 |
|