mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-20 12:52:12 +02:00
[1.3.0] Huge upgrade, (X)HTML Strict now supported
+ Transparently handles inline elements in block context (blockquote) ! Added GET method to demo for easier validation, added 50kb max input size ! New directive %HTML.BlockWrapper, for block-ifying inline elements ! New directive %HTML.Parent, allows you to only allow inline content - Added missing type to ChildDef_Chameleon . ChildDef_Required guards against empty tags . Lookup table HTMLDefinition->info_flow_elements added . Added peace-of-mind variable initialization to Strategy_FixNesting git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@560 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -7,11 +7,11 @@ to HTML Purifier, though, so let's take a look:
|
||||
|
||||
== Major incompatibilities ==
|
||||
|
||||
BLOCKQUOTE changes from 'flow' to 'block'
|
||||
[done] BLOCKQUOTE changes from 'flow' to 'block'
|
||||
behavior: inline inner contents should not be nuked, paragraph as necessary
|
||||
U, S, STRIKE cut
|
||||
[partially-done] U, S, STRIKE cut
|
||||
behavior: replace with appropriate inline span + CSS
|
||||
ADDRESS from potpourri to Inline (removes p tags)
|
||||
[partially-done] ADDRESS from potpourri to Inline (removes p tags) (lower importance)
|
||||
behavior: p tags silently dropped or replaced with something (<br>)
|
||||
|
||||
== Things we can loosen up ==
|
||||
@@ -38,5 +38,6 @@ A tag's attribute 'target' (for selecting frames) cut
|
||||
OL/LI tag's attribute 'start' (for renumbering lists) cut
|
||||
behavior: no substitute, just delete
|
||||
Attribute 'name' deprecated in favor of 'id'
|
||||
behavior: create proper AttrTransform
|
||||
behavior: not allowed in first place, but create proper AttrTransform
|
||||
PRE tag allows SUB/SUP? (strict dtd comment vs syntax, loose disallows)
|
||||
behavior: disallow as usual
|
||||
|
Reference in New Issue
Block a user