php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28852 Error in HTML code on php.net
Submitted: 2004-06-20 10:44 UTC Modified: 2004-06-22 06:38 UTC
From: mail at morkrid dot com Assigned:
Status: Closed Package: Website problem
PHP Version: PHP5 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mail at morkrid dot com
New email:
PHP Version: OS:

 

 [2004-06-20 10:44 UTC] mail at morkrid dot com
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-20 10:47 UTC] mail at morkrid dot com
test url is

http://at.php.net/manual/en/language.basic-syntax.php
 [2004-06-20 10:54 UTC] nlopess@php.net
This a mirror specific problem.
This mirror has already PHP 5 runninf and the code is PHP 4 only. I'll change the code.

For now, you may use other mirror.
 [2004-06-20 11:48 UTC] goba@php.net
I have fixed the issue with a simplified patch provided by Nuno.
 [2004-06-22 06:19 UTC] curt@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


I cant seem to find where you\'re looking at. I\'ve looked at http://www.php.net/manual/en/language.basic-syntax.php and that inline style isn\'t defined anywhere.

 [2004-06-22 06:38 UTC] curt@php.net
Sorry my mistake. re-closing bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 20:01:32 2024 UTC