From 1532fe703af237e489a84e8a5d09dd10d38c26e5 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Fri, 30 Mar 2007 00:01:35 +0000 Subject: [PATCH] Update docs: - Progress hr.size was changed from width to height - UTF-8 rules of thumb were clarified to make clear this is only necessary for UTF-8 text. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@923 48356398-32a2-884e-a903-53898d9a118a --- docs/dev-progress.html | 4 ++-- docs/enduser-utf8.html | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/dev-progress.html b/docs/dev-progress.html index 2099c0e8..e6ae2eda 100644 --- a/docs/dev-progress.html +++ b/docs/dev-progress.html @@ -262,7 +262,7 @@ Mozilla on inside and needs -moz-outline, no IE support. -Transform, target milestone 1.4 +Transform, target milestone 1.6 alignCAPTIONNear-equiv style 'caption-side', drop left and right IMGMargin-left and margin-right = auto or parent div TABLE @@ -283,7 +283,7 @@ Mozilla on inside and needs -moz-outline, no IE support. ATurn into ID noshadeHRBoolean, style 'border-style:solid;' nowrapTD, THBoolean, style 'white-space:nowrap;' (not compat with IE5) -sizeHRNear-equiv 'width', needs px suffix if original was pixels +sizeHRNear-equiv 'height', needs px suffix if original was pixels srcIMGRequired, insert blank or default img if not set startOLPoorly supported 'counter-reset', allowed in loose, dropped in strict typeLIEquivalent style 'list-style-type', different allowed values though. (needs testing) diff --git a/docs/enduser-utf8.html b/docs/enduser-utf8.html index d8187c5d..351c44d1 100644 --- a/docs/enduser-utf8.html +++ b/docs/enduser-utf8.html @@ -1003,7 +1003,11 @@ when dealing with Unicode text:

-

...and always think in bytes, not characters. If you use strpos() +

Note: this list applies to UTF-8 encoded text only: if you have +a string that you are 100% sure is ASCII, be my guest and use +strtolower (HTML Purifier uses this function.)

+ +

Regardless, always think in bytes, not characters. If you use strpos() to find the position of a character, it will be in bytes, but this usually won't matter since substr() also operates with byte indices!