1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-12 18:26:19 +02:00

Commit Graph

  • a55906225a Update docs. Edward Z. Yang 2006-07-24 02:51:19 +00:00
  • 619d5d9bc1 Migrate strategies to separate classes complete. Edward Z. Yang 2006-07-24 02:49:37 +00:00
  • f75e8dab8c Extract FixNestingTest from DefinitionTest. Edward Z. Yang 2006-07-24 02:43:53 +00:00
  • 63396bb076 Extract MakeWellFormedTest from DefinitionTest. Edward Z. Yang 2006-07-24 02:41:06 +00:00
  • 4c200f6bcb Extract RemoveForeignElementsTest from Definition. Edward Z. Yang 2006-07-24 02:33:07 +00:00
  • e768f845f4 Extract common functionality to StrategyAbstractTest. Edward Z. Yang 2006-07-24 02:28:40 +00:00
  • 219bd277e2 Add test Strategy folder to start migrating unit tests. Edward Z. Yang 2006-07-24 02:21:53 +00:00
  • d98f1742ec Extract FixNesting strategy from Definition object. Edward Z. Yang 2006-07-24 01:54:25 +00:00
  • 2e6a5c10b3 Add in a missing include. I'm seeing duplication... Edward Z. Yang 2006-07-24 01:50:41 +00:00
  • 4b8a206417 Extract RemoveForeignElements strategy from Definition object. Edward Z. Yang 2006-07-24 01:50:02 +00:00
  • 8e91e841f5 Update todo. Edward Z. Yang 2006-07-24 01:23:10 +00:00
  • dfb3d48397 Migrate DefinitionTest to use DirectLex for easier to read test-cases. Edward Z. Yang 2006-07-24 01:22:51 +00:00
  • b251c4ed86 Extract MakeWellFormed strategy from Definition object. Edward Z. Yang 2006-07-23 23:29:12 +00:00
  • 9aa2da8f9f Commit Strategy, which will soon be splitting up the Definition file. Edward Z. Yang 2006-07-23 23:23:14 +00:00
  • 609977f9f5 Add CDATA support to the Lexers, as well as give PEARSax3 entity replacement. Edward Z. Yang 2006-07-23 23:04:34 +00:00
  • 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). Edward Z. Yang 2006-07-23 21:07:30 +00:00
  • 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. Edward Z. Yang 2006-07-23 19:43:19 +00:00
  • 5a18dad64f Typo, space between comma and word. Edward Z. Yang 2006-07-23 18:57:13 +00:00
  • bcc2b09ac7 Finish documenting PEARSax3, touch up the other docs. Nuke the original lexer.txt document. Edward Z. Yang 2006-07-23 18:56:00 +00:00
  • 48cf55eae4 Switch benchmark to relative percents: makes comparisons easier. Edward Z. Yang 2006-07-23 18:18:11 +00:00
  • 2fa1161d3d - Implemented special entity conversion. - Optimized and documented DirectLex. - Rearranged test cases. Edward Z. Yang 2006-07-23 18:13:04 +00:00
  • dc24215874 Token.php: Document the code. Edward Z. Yang 2006-07-23 13:20:15 +00:00
  • 728848c4c7 Begin adding Doxygen documentation. Edward Z. Yang 2006-07-23 03:43:53 +00:00
  • 14f481bcf6 svn:eol-style = native Edward Z. Yang 2006-07-23 00:11:03 +00:00
  • 39c16f5cfd svn:keywords = Id Edward Z. Yang 2006-07-23 00:06:34 +00:00
  • 042eda0463 Hook new test file in and delete duplicated tests. Edward Z. Yang 2006-07-23 00:03:11 +00:00
  • 6a5ff6d2a9 Branch the LexerTest in order to partition DirectLex specific unit tests. Edward Z. Yang 2006-07-23 00:01:11 +00:00
  • cf403eb257 Add Lexer test directory. Edward Z. Yang 2006-07-23 00:00:36 +00:00
  • ca1aefe271 Commit various optimizations to the Lexer, and add stub file for profiling the lexer. Edward Z. Yang 2006-07-22 22:48:07 +00:00
  • de5ab5e6a0 Kick the auto-prepend habit. Edward Z. Yang 2006-07-22 19:01:59 +00:00
  • ac1e62e043 Optimize next*() functions in DirectLex, add test for offset. Update Lexer documents. Edward Z. Yang 2006-07-22 18:55:34 +00:00
  • eac83995e1 Remove dud test file. Edward Z. Yang 2006-07-22 16:04:22 +00:00
  • 1ab3ae160a Move classes into Zend style setup. Edward Z. Yang 2006-07-22 15:38:41 +00:00
  • 758e70dd94 Add test HTMLPurifier folder. Edward Z. Yang 2006-07-22 15:27:03 +00:00
  • 067a38f988 Add HTMLPurifier folder. Edward Z. Yang 2006-07-22 15:22:48 +00:00
  • 5da6634d86 We're adopting Zend's library organization, so create a library folder. Edward Z. Yang 2006-07-22 15:19:40 +00:00
  • 9180d6256f Make PHP5 lexer default DOMLex. Edward Z. Yang 2006-07-22 15:07:53 +00:00
  • 5bcb3c60cd Update docs, add lexer.txt Edward Z. Yang 2006-07-22 14:57:12 +00:00
  • d22140b9a6 Fix benchmarks to work in PHP4 by excluding DOMLex. Edward Z. Yang 2006-07-22 14:28:51 +00:00
  • f0d74a3bf4 Fix parse error in PHP4. Edward Z. Yang 2006-07-22 14:00:52 +00:00
  • 4bf3305dff Build another lexer from PHP5's DOM library. Extremely fast! Edward Z. Yang 2006-07-22 13:50:05 +00:00
  • 3e982c7f2c Rename Lexer, separate files. Also augmented benchmarks and benchmarker, Edward Z. Yang 2006-07-22 12:53:04 +00:00
  • e52890276b Branch out the SAX impl. Edward Z. Yang 2006-07-22 00:28:28 +00:00
  • 49fea8f8e9 Begin seperating Lexer implementations by copying the Lexer file to the Lexer directory. Edward Z. Yang 2006-07-22 00:26:09 +00:00
  • a77a720377 Add Lexer folder to separate Lexer implementations. Edward Z. Yang 2006-07-22 00:22:39 +00:00
  • cafa24482d Setup include web. Unit tests should now be able to be run independently. Edward Z. Yang 2006-07-22 00:13:08 +00:00
  • 1d8bfebb3a Update todo (rm renaming and refactoring) Edward Z. Yang 2006-07-22 00:04:27 +00:00
  • 025b648c99 Split out code in Definition.php . Edward Z. Yang 2006-07-22 00:02:48 +00:00
  • f00a80c561 (Test) Branch Definition to ChildDef in order to split out code in the file. Edward Z. Yang 2006-07-22 00:01:38 +00:00
  • 6d72d061a9 Branch Definition to AttrDef in order to split out code in the file. Edward Z. Yang 2006-07-21 23:58:45 +00:00
  • fb4efc52bf Branch Definition to ChildDef in order to split out code in the file. Edward Z. Yang 2006-07-21 23:58:12 +00:00
  • 404ca68c87 Rename PureHTMLDefinition -> HTMLPurifier_Definition, and internal classes too. Edward Z. Yang 2006-07-21 23:38:44 +00:00
  • 436873e227 Move tester, complete HTML_Purifier -> HTMLPurifier move. Edward Z. Yang 2006-07-21 23:27:00 +00:00
  • 1836b73c63 HTML_Purifier to HTMLPurifier. May want to rethink schematics for this though. Edward Z. Yang 2006-07-21 23:13:22 +00:00
  • ccebe77e70 Rename HTML_Generator to HTMLPurifier_Generator. Edward Z. Yang 2006-07-21 23:10:30 +00:00
  • 6a6afaccc5 Rename HTML_Lexer to HTMLPurifier_Lexer. However, some more refactoring still needs to be done (namely making the lexer an interface). Edward Z. Yang 2006-07-21 23:07:47 +00:00
  • cf4776cfbd Add a todo list. Edward Z. Yang 2006-07-21 11:31:43 +00:00
  • 23dba8b55e Rename MarkupFragment.php to Token.php, change internal class names and rewire the classes. We also started adding more dependence on the Lexer and Generator in unrelated tests. Edward Z. Yang 2006-07-21 11:27:54 +00:00
  • 8bde230c99 Renamed remotely Edward Z. Yang 2006-07-21 02:16:36 +00:00
  • 0ad09e5d94 Commit entity information from the HTML 4.01 spec. This should be parsed into corresponding mapping files, even though they will be versioned. Edward Z. Yang 2006-07-20 22:47:26 +00:00
  • 3427c6c079 Begin getting parsing of character data into shape, not done yet. Edward Z. Yang 2006-07-20 02:43:06 +00:00
  • dadfa87acc Update documentation (esp. revamp status) Edward Z. Yang 2006-07-20 00:40:04 +00:00
  • ff8f24458d Finish implementing fixNesting(). Removed security-in-depth check for optimization reasons, since the info array will never cause such a condition. Edward Z. Yang 2006-07-20 00:30:35 +00:00
  • 3e6bcb7a0f Implemented good behavior structure for fixNesting. Goes into infinite loop if bad stuff is passed. Edward Z. Yang 2006-07-19 00:21:21 +00:00
  • 2a2d8cbd76 Optimize files by removing is_a() calls in favor of static type member variables. Edward Z. Yang 2006-07-18 23:40:20 +00:00
  • 5391195170 Finalize fixNesting test suite. Edward Z. Yang 2006-07-18 23:17:41 +00:00
  • 06798e60f2 Move Test_HTMLDTD_ChildDef to top for improved organization. Edward Z. Yang 2006-07-15 20:50:28 +00:00
  • fb9ed6f600 In-depth uselessness, have empty element definition return false always. Edward Z. Yang 2006-06-15 22:08:24 +00:00
  • d9c8effc9b Begin fleshing out test_fixNesting(). Still needs more test-cases. Edward Z. Yang 2006-06-11 22:53:40 +00:00
  • e1464fa2f6 Update spec: * Info about applicability * Add more status reports * Add source of XML_DTD code * Remark about table child definitions Edward Z. Yang 2006-06-05 01:08:20 +00:00
  • 4935c69904 Main: implemented regexp-style validation for complicated child definitions Edward Z. Yang 2006-06-05 00:50:27 +00:00
  • f5486bbbae Add ChildDef_Optional, which piggy-backs off of ChildDef_Required. Some column 80 formatting fixes. Edward Z. Yang 2006-05-30 22:44:14 +00:00
  • 3f123d6f53 Fit everything to width=80. Edward Z. Yang 2006-05-30 14:38:28 +00:00
  • e3c4faae41 Add a missing word. Edward Z. Yang 2006-04-18 02:54:39 +00:00
  • c5bcd42d3d Write an introduction to the specification. Edward Z. Yang 2006-04-18 00:20:51 +00:00
  • 4d2ec806ac Add a security document, detailing issues that white-listing won't resolve. Edward Z. Yang 2006-04-17 21:32:53 +00:00
  • 83f735ea7e Finish HTMLDTD_ChildDef_Required. Edward Z. Yang 2006-04-17 00:49:15 +00:00
  • 20c53d6017 Add to spec some special cases about exclusions and what to do with invalid data. Edward Z. Yang 2006-04-16 22:51:34 +00:00
  • b29155018b Add a few more comments about possible extra features. Edward Z. Yang 2006-04-16 21:06:08 +00:00
  • 8c80b70c37 Implement automatic <p> and <li> closing. We trimmed down the closing P tags list to something more sane in the spec. Edward Z. Yang 2006-04-16 19:34:28 +00:00
  • ffbeaf66d1 Refine tests to include attribute checks and some other cases. Edward Z. Yang 2006-04-16 16:57:51 +00:00
  • eefb08b6f9 PureHTMLDefinition::makeWellFormed() is now complete, but may be missing a few unit tests. Update spec: we need transforms for the foreign elements. PureHTMLDefinition's children definitions have info but not behavior. Edward Z. Yang 2006-04-16 16:50:51 +00:00
  • 4c9f4067ab Begin creating scaffolding for the DTD declarations + evaluations that will make up the meat of the rest of the validation. Add a few more forgotten tests for makeWellFormed() Edward Z. Yang 2006-04-16 04:07:21 +00:00
  • 3f4d928173 Add broken test cases for PureHTMLDefinition::makeWellFormed() Edward Z. Yang 2006-04-16 03:48:03 +00:00
  • 0c88b090b0 Add HTML_Generator::generateFromTokens(). Edward Z. Yang 2006-04-16 03:42:25 +00:00
  • 1a3887de1b Standardize test-cases with the prefix Test_. Add framework for HTML_Purifier, its unit test will really only be for regression testing from integration issues. It's more important to test the components. Edward Z. Yang 2006-04-16 03:39:39 +00:00
  • 69da034570 Fix bug in HTML_Generator that resulted in extra spaces. PureHTMLDefinition now passes all tests. Edward Z. Yang 2006-04-16 03:33:37 +00:00
  • 2782d7499a Slightly alter tag hierarchy so that Empty doesn't inherit from Start. Edward Z. Yang 2006-04-16 03:28:13 +00:00
  • 7c6775d552 Add HTML_Generator class and associated unit tests. Edward Z. Yang 2006-04-16 03:27:40 +00:00
  • c4b23cc775 Turn on entity parsing for the Lexers. Add PureHTMLDefinition and define removeForeignElements. Edward Z. Yang 2006-04-16 03:00:05 +00:00
  • e7f5b1674d Condense benchmark output. Edward Z. Yang 2006-04-16 01:09:32 +00:00
  • 6248b05d0e Peephole optimization for infinite loop protection code. Edward Z. Yang 2006-04-16 00:37:57 +00:00
  • 20e027646d Commit benchmarking code. Edward Z. Yang 2006-04-16 00:35:34 +00:00
  • 53b738c1e4 Fix the ineffective infinite loop protection. Edward Z. Yang 2006-04-16 00:35:22 +00:00
  • 9f1d145322 Add infinite loop protection. Edward Z. Yang 2006-04-16 00:30:11 +00:00
  • 6372a16926 Fix some more attribute parsing things that could lead to infinite loops. Edward Z. Yang 2006-04-16 00:23:35 +00:00
  • 92bfaafd20 Fix infinite loop that occurs when we have unquoted attributes. Edward Z. Yang 2006-04-15 22:28:03 +00:00
  • bbd2ad29bd Add more info to the spec about CSS and start documenting status of each segment. Edward Z. Yang 2006-04-15 02:28:43 +00:00
  • dad395ac45 Scratch PI or JASP from spec. Add extra comments about MarkupFragment's behavior to incoming data. More Todos for our home-brew lexer, and also fix empty tag support in the SAX parer adapter. Add test framework for marking SAX to be tested with the regular result, or a specialized result. Edward Z. Yang 2006-04-15 02:19:27 +00:00
  • 181d544b61 Cleanup final renaming stuff (how could I forget to rename the class) and hook in the SAX parser. It has a bit different behavior, so you'll have to be careful. Edward Z. Yang 2006-04-15 01:47:12 +00:00