#26848 [NEW]: Make highlight functions XHTML 1.0 Strict compliant
| From: | phpman at fosketts dot co dot uk | Date: | Thu, 08 Jan 2004 19:49:15 +0000 |
| Subject: | #26848 [NEW]: Make highlight functions XHTML 1.0 Strict compliant | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-53000@lists.php.net to get a copy of this message | ||
From: phpman at fosketts dot co dot uk
Operating system: Win XP
PHP version: 4.3.4
PHP Bug Type: Feature/Change Request
Bug description: Make highlight functions XHTML 1.0 Strict compliant
Description:
------------
Will the highlight functions (highlight_string() and highlight_file()) be
modified to produce valid XHTML 1.0 Strict output? This has already been
done in other functions, e.g. nl2br(). A simple solution would be to edit
zend_highlight.c as follows:
1) Replace <font color=\"%s\"> with <span style=\"color: %s\"> on
lines
106 and 155
2) Replace </font> with </span> on lines 151, 191 and 193
Thanks
Sean :)
--
Edit bug report at http://bugs.php.net/?id=26848&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26848&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26848&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26848&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26848&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26848&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26848&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26848&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26848&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26848&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26848&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26848&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26848&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26848&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26848&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26848&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26848&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26848&r=float