Errata

Firefox Hacks

Errata for Firefox Hacks

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 2
4th Paragraph

Installing from update mozilla.org. Discusses an Advanced Search Button to be gotten at http://update.mozilla.org. I searched this location but could not find it. Perhaps it was renamed.

Anonymous   
Printed Page 94
Bottom: PHP content rewriter

Instead of checking the User-Agent request-header, you can also check Accept. I think
this is a better method, because you can also detect other browsers that can't handle
application/xhtml+xml. I always use this PHP code:

<?php
if (strpos($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml") !== false) {
header("Content-Type: application/xhtml+xml");
} else {
header("Content-Type: text/html");
}
?>

(Mind the PHP opening tag <?php: this is the recommended way to start a PHP script.
See http://www.php.net/language.basic-syntax for more details.)

Anonymous