2006-09-23 18:37:30 +00:00
|
|
|
|
|
|
|
Is HTML Purifier Strict or Transitional?
|
2007-05-17 18:36:39 +00:00
|
|
|
[rename/deprecation pending]
|
2006-09-23 18:37:30 +00:00
|
|
|
|
2007-01-20 03:59:07 +00:00
|
|
|
Despite the fact that HTML Purifier professes to support both transitional and
|
|
|
|
strict HTML, it rejects a lot of attributes and elements that are actually, indeed,
|
2006-09-23 18:37:30 +00:00
|
|
|
valid. You can investigate progress.html to find out precisely what we
|
|
|
|
are doing to these *deprecated* attributes.
|
|
|
|
|
|
|
|
However, users have found that Strict HTML imposes some quite unreasonable
|
|
|
|
restrictions on certain things. The start and value attributes in ol and
|
|
|
|
li (respectively) perhaps are the most contested. There's is currently no
|
|
|
|
widely supported browser method short of JavaScript that can replace these
|
2007-01-20 03:59:07 +00:00
|
|
|
two deprecated elements. It behooves us to allow these deprecated
|
|
|
|
attributes when the output is transitional.
|
2006-09-23 18:37:30 +00:00
|
|
|
|
|
|
|
Fortunantely, that's the only real bugger case. The others have near-perfect
|
|
|
|
CSS equivalents, and were presentational anyway. However, the other question
|
|
|
|
pops up: should we always convert these to the CSS forms when 1. the spec
|
|
|
|
allows them anyway and 2. older browsers support them better? After all, the
|
|
|
|
whole point about CSS is to seperate styling from content, so inline styling
|
|
|
|
doesn't solve that problem.
|
|
|
|
|
2007-05-17 18:36:39 +00:00
|
|
|
[new material]
|
2006-11-23 22:15:35 +00:00
|
|
|
|
2007-05-17 18:36:39 +00:00
|
|
|
HTML Purifier 1.7 creates a new organizational system for deprecated attribute/
|
|
|
|
element transformations. They will be unified under the title of "Tidy", which
|
|
|
|
is what they are: cleaning up after deprecated user markup into standards-compliant
|
|
|
|
versions. There will also be a change in the default behavior (athough, to the
|
|
|
|
end user not inspecting the HTML, there will be no change: in fact, it may
|
|
|
|
work even better).
|
2006-11-23 22:15:35 +00:00
|
|
|
|
2007-05-17 18:36:39 +00:00
|
|
|
Consult the Advanced API for more details.
|