diff --git a/README.md b/README.md index 26cf82e..2387381 100644 --- a/README.md +++ b/README.md @@ -2111,7 +2111,7 @@ the metadata the output is valid HTML, although it does accept bare `&` symbols. `make test` will run the node-based tests. By default it runs tests on files in every supported format. To test a specific file type, set `FMTS` to the format -you want to test. Feature-specific tests are avaialble with `make test_misc` +you want to test. Feature-specific tests are available with `make test_misc` ```bash $ make test_misc # run core tests diff --git a/bits/18_cfb.js b/bits/18_cfb.js index 6eb3fe1..7fd4bac 100644 --- a/bits/18_cfb.js +++ b/bits/18_cfb.js @@ -381,7 +381,7 @@ var ENDOFCHAIN = -2; var HEADER_SIGNATURE = 'd0cf11e0a1b11ae1'; var HEADER_CLSID = '00000000000000000000000000000000'; var consts = { - /* 2.1 Compund File Sector Numbers and Types */ + /* 2.1 Compound File Sector Numbers and Types */ MAXREGSECT: -6, DIFSECT: -4, FATSECT: -3, diff --git a/bits/40_harb.js b/bits/40_harb.js index 7e279a1..8f3dd57 100644 --- a/bits/40_harb.js +++ b/bits/40_harb.js @@ -149,7 +149,7 @@ function dbf_to_aoa(buf, opts)/*:AOA*/ { case 'L': switch(s.toUpperCase()) { case 'Y': case 'T': out[R][C] = true; break; case 'N': case 'F': out[R][C] = false; break; - case ' ': case '?': out[R][C] = false; break; /* NOTE: technically unitialized */ + case ' ': case '?': out[R][C] = false; break; /* NOTE: technically uninitialized */ default: throw new Error("DBF Unrecognized L:|" + s + "|"); } break; case 'M': /* TODO: handle memo files */ diff --git a/bits/44_offcrypto.js b/bits/44_offcrypto.js index bd27b20..a883adc 100644 --- a/bits/44_offcrypto.js +++ b/bits/44_offcrypto.js @@ -131,7 +131,7 @@ function parse_EncryptionInfo(blob, length/*:?number*/) { case 0x03: return parse_EncInfoExt(blob, vers); case 0x04: return parse_EncInfoAgl(blob, vers); } - throw new Error("ECMA-376 Encryped file unrecognized Version: " + vers.Minor); + throw new Error("ECMA-376 Encrypted file unrecognized Version: " + vers.Minor); } /* [MS-OFFCRYPTO] 2.3.4.5 EncryptionInfo Stream (Standard Encryption) */ diff --git a/demos/headless/README.md b/demos/headless/README.md index ddd8c58..79bb60b 100644 --- a/demos/headless/README.md +++ b/demos/headless/README.md @@ -1,6 +1,6 @@ # Headless Browsers -The library, intentionally conservative in the use of ES5+ feaures, plays nicely +The library, intentionally conservative in the use of ES5+ features, plays nicely with most headless browsers. This demo shows a few common headless scenarios. ## PhantomJS diff --git a/demos/vue/SheetJS-vue.js b/demos/vue/SheetJS-vue.js index 54a13e9..6b98a35 100644 --- a/demos/vue/SheetJS-vue.js +++ b/demos/vue/SheetJS-vue.js @@ -6,7 +6,7 @@ var SJSTemplate = [ '
', '', '
', - '', + '', '
', '
', '
' @@ -61,7 +61,7 @@ Vue.component('html-preview', { /* update table */ document.getElementById('out-table').innerHTML = HTML; /* show export button */ - document.getElementById('expor-table').style.visibility = "visible"; + document.getElementById('export-table').style.visibility = "visible"; }; reader.readAsArrayBuffer(file); diff --git a/docbits/90_test.md b/docbits/90_test.md index 848a458..ef7a639 100644 --- a/docbits/90_test.md +++ b/docbits/90_test.md @@ -7,7 +7,7 @@ `make test` will run the node-based tests. By default it runs tests on files in every supported format. To test a specific file type, set `FMTS` to the format -you want to test. Feature-specific tests are avaialble with `make test_misc` +you want to test. Feature-specific tests are available with `make test_misc` ```bash $ make test_misc # run core tests diff --git a/misc/docs/README.md b/misc/docs/README.md index e8d5d6f..5f77294 100644 --- a/misc/docs/README.md +++ b/misc/docs/README.md @@ -1923,7 +1923,7 @@ the metadata the output is valid HTML, although it does accept bare `&` symbols. `make test` will run the node-based tests. By default it runs tests on files in every supported format. To test a specific file type, set `FMTS` to the format -you want to test. Feature-specific tests are avaialble with `make test_misc` +you want to test. Feature-specific tests are available with `make test_misc` ```bash $ make test_misc # run core tests diff --git a/test.js b/test.js index 57934de..1a04a79 100644 --- a/test.js +++ b/test.js @@ -1253,19 +1253,19 @@ describe('write features', function() { X = require(modp); ws = X.utils.aoa_to_sheet([["a","b","c"],[1,2,3]]); baseprops = { - Category: "C4tegory", - ContentStatus: "C0ntentStatus", - Keywords: "K3ywords", - LastAuthor: "L4stAuthor", - LastPrinted: "L4stPrinted", + Category: "Newspaper", + ContentStatus: "Published", + Keywords: "print", + LastAuthor: "Perry White", + LastPrinted: "1978-12-15", RevNumber: 6969, AppVersion: 69, - Author: "4uth0r", - Comments: "C0mments", + Author: "Lois Lane", + Comments: "Needs work", Identifier: "1d", - Language: "L4nguage", - Subject: "Subj3ct", - Title: "T1tle" + Language: "English", + Subject: "Superman", + Title: "Man of Steel" }; }); if(typeof before != 'undefined') before(bef); @@ -2016,7 +2016,7 @@ describe('encryption', function() { it('should throw with no password', function() {assert.throws(function() { X.read(fs.readFileSync(dir + x), {type:TYPE}); }); }); it('should throw with wrong password', function() { try { - X.read(fs.readFileSync(dir + x), {type:TYPE,password:'passwor',WTF:opts.WTF}); + X.read(fs.readFileSync(dir + x), {type:TYPE,password:'Password',WTF:opts.WTF}); throw new Error("incorrect password was accepted"); } catch(e) { if(e.message != "Password is incorrect") throw e; diff --git a/tests/core.js b/tests/core.js index d5a7079..49ebc68 100644 --- a/tests/core.js +++ b/tests/core.js @@ -2016,7 +2016,7 @@ describe('encryption', function() { it('should throw with no password', function() {assert.throws(function() { X.read(fs.readFileSync(dir + x), {type:TYPE}); }); }); it('should throw with wrong password', function() { try { - X.read(fs.readFileSync(dir + x), {type:TYPE,password:'passwor',WTF:opts.WTF}); + X.read(fs.readFileSync(dir + x), {type:TYPE,password:'Password',WTF:opts.WTF}); throw new Error("incorrect password was accepted"); } catch(e) { if(e.message != "Password is incorrect") throw e;