diff --git a/docs/spec.txt b/docs/spec.txt index e4a60d42..a84f3482 100644 --- a/docs/spec.txt +++ b/docs/spec.txt @@ -54,22 +54,14 @@ HTML tags. Things like blog comments are, in all likelihood, most appropriately written in an extremely restrictive set of markup that doesn't require all this functionality (or not written in HTML at all). -== STAGE 2 - remove foreign elements == +The rest of this document is pending moving into their associated classes. + + + - Status: A- (transformations need to be implemented) -At this point, the parser needs to start knowing about the DTD. Since we -hold everything in an associative $info array, if it's set, it's valid, and -we can include. Otherwise zap it, or attempt to figure out what they meant. -? A misspelling of ! This feature may be too sugary though. -One last thing: the remove foreign elements has to do the element -transformations, from FONT to SPAN, etc. -font -> span - size CDATA #IMPLIED - color %Color; #IMPLIED - face CDATA #IMPLIED == STAGE 3 - make well formed == diff --git a/library/HTMLPurifier/Strategy/RemoveForeignElements.php b/library/HTMLPurifier/Strategy/RemoveForeignElements.php index 1f55b512..c0290593 100644 --- a/library/HTMLPurifier/Strategy/RemoveForeignElements.php +++ b/library/HTMLPurifier/Strategy/RemoveForeignElements.php @@ -9,7 +9,8 @@ require_once 'HTMLPurifier/TagTransform.php'; * Removes all unrecognized tags from the list of tokens. * * This strategy iterates through all the tokens and removes unrecognized - * tokens. + * tokens. If a token is not recognized but a TagTransform is defined for + * that element, the element will be transformed accordingly. */ class HTMLPurifier_Strategy_RemoveForeignElements extends HTMLPurifier_Strategy