CHANGELOG.md (842B)
1 # 2.0.3 2 3 - Explicit comparison for the length of rows in the table. 4 5 # 2.0.2 6 7 - Support for extracting text in this format `<td><span class="bold">Foo</span></td>`. 8 9 # 2.0.0 10 11 ## API changes 12 13 - `jsonifyMyTable` is no longer a class. 14 - New function is called `jsonify`, and works on tables (`HTMLTableElement`). 15 16 ```javascript 17 const myTable = document.getElementById('tableID'); 18 const data = myTable.jsonify(); 19 ``` 20 21 There is no change in the result object, it contains: 22 23 1. `error` if any, else set to `false`. 24 2. `res` array of objects. 25 3. `headers` array of headers. 26 27 # 1.1.0 28 29 - Eliminated `table` as the data member. 30 - `error` is now a permanent data member: set to `false` if there was no error, or to the error message if there was an error. 31 32 ```javascript 33 const data = new jsonifyMyTable('id'); 34 35 if (!data.error) { 36 // data.res... 37 } 38 ```