From:             mail at morkrid dot com
Operating system: Windows XP
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  Error in HTML code on php.net

Description:
------------
in the php manual, the html seems to be incorrect, causing incorrect
colors to be rendered (almost unreadable at least on my laptop)

taken from the markup just beneath the next "Example 5-1. Ways of escaping
from HTML", thf following code appears:

<div class="phpcode"><code><span style="color: html">

this must surely be wrong. "color: html" makes no sense, and is probably
not even legal.

the style sheet indicates:

div.phpcode span.html {
    color: black;       
}

the correct html must surely be:

<div class="phpcode"><code><span class="html">

this also applies for the following styles:

div.phpcode span.html {
    color: black;       
}

div.phpcode span.comment {
    color: #FF8000;
}

div.phpcode span.default {
    color: #0000BB;
}

div.phpcode span.keyword {
    color: #007700;
}

div.phpcode span.string {
    color: #DD0000;
}

hope this can be fixed asap, as i am reading the manual to learn php, and
much of the text is now unreadable because colors and background colors
are almost identical.

note: in opera (which i use), incorrect colors are displayed. explorer
displays just black.


-- 
Edit bug report at http://bugs.php.net/?id=28852&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28852&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28852&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28852&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28852&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28852&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28852&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28852&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28852&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28852&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28852&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28852&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28852&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28852&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28852&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28852&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28852&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28852&r=float

Reply via email to