Errata

Using the HTML5 Filesystem API

Errata for Using the HTML5 Filesystem API

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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
Printed, PDF,
Page 5
2nd paragraph

Should be:
Preferences->Under The Hood->Content Settings->All Cookies and Site Data

Not:
Preferences->Under The Hood-> All Cookies and Site Data

Eric Bidelman
Eric Bidelman
 
Aug 14, 2011 
PDF
Page 17
Example 4-2

There is a line:

textarea = this.result;

This does not work. On run it reports error "Uncaught NotFoundError: An attempt was made to reference a Node in a context where it does not exist."

That line should be

textarea.value = this.result;

Anto Jurkovic  Oct 22, 2013 
PDF
Page 19
Example 4-3

Code from example does not work any more. It seems that BlobBuilder is obsoleted. Blob should be used instead.

The following lines:

var bb = new BlobBuilder(); // Create a new Blob on-the-fly.
bb.append('Lorem Ipsum');
fileWriter.write(bb.getBlob('text/plain'));

could be changed to, for example:

fileWriter.write(new Blob(["Lorem Ipsum"], { type: "text/plain" }));

Note from the Author or Editor:
Yep. BlobBuilder was removed and replaced by the Blob() constructor.

Anto Jurkovic  Oct 22, 2013 
PDF
Page 23, 27, 35, 46
code snippets

window.webiRequestFileSystem -> window.webkitRequestFileSystem

Eric Bidelman
Eric Bidelman
 
Aug 15, 2011