6080c4561d
Reader/Html is now covered except for 1 statement. There is some coverage of RichText when you know in advance that the html will expand into a single cell. It is a tougher nut, one that I have not yet cracked, to try to handle rich text while converting unkown html to multiple cells. The original author left this as a TODO, and so for now must I. It made sense to restructure some of the code. There are some changes. - Issue #1532 is fixed (links are now saved when using rowspan). - Colors can now be specified as html color name. To accomplish this, Helper/Html function colourNameLookup was changed from protected to public, and changed to static. - Superfluous empty lines were eliminated in a number of places, e.g. <ul><li>A</li><li>B</li><li>C</li></ul> had formerly caused a wrapped cell to be created with 2 empty lines followed by A, B, and C on separate lines; it will now just have the 3 A/B/C lines, which seems like a more sensible interpretation. - Img alt tag, which had been cast to float, is now used as a string. Private member "encoding" is not used. Functions getEncoding and setEncoding have therefore been marked deprecated. In fact, I was unable to get SecurityScanner to pass *any* html which is not UTF-8. There are possibly ways of getting around this (in Reader/Html - I have no intention of messing with Security Scanner), as can be seen in my companion pull request for Excel2003 Xml Reader. Doing this would be easier for ASCII-compatible character sets (like ISO-8859-1), than for non-compatible charsets (like UTF-16). I am not convinced that the effort is worth it, but am willing to investigate further. I added a number of tests, creating an Html directory, and moving HtmlTest to that directory. |
||
---|---|---|
.. | ||
data/continents | ||
01_Simple_download_ods.php | ||
01_Simple_download_pdf.php | ||
01_Simple_download_xls.php | ||
01_Simple_download_xlsx.php | ||
01_Simple.php | ||
02_Types.php | ||
03_Formulas.php | ||
04_Printing.php | ||
05_Feature_demo.php | ||
06_Largescale.php | ||
07_Reader.php | ||
08_Conditional_formatting_2.php | ||
08_Conditional_formatting.php | ||
09_Pagebreaks.php | ||
11_Documentsecurity.php | ||
12_CellProtection.php | ||
13_Calculation.php | ||
13_CalculationCyclicFormulae.php | ||
14_Xls.php | ||
15_Datavalidation.php | ||
16_Csv.php | ||
17_Html.php | ||
17a_Html.php | ||
18_Extendedcalculation.php | ||
19_Namedrange.php | ||
20_Read_Excel2003XML.php | ||
20_Read_Gnumeric.php | ||
20_Read_Ods.php | ||
20_Read_Sylk.php | ||
20_Read_Xls.php | ||
22_Heavily_formatted.php | ||
23_Sharedstyles.php | ||
24_Readfilter.php | ||
25_In_memory_image.php | ||
26_Utf8.php | ||
27_Images_Xls.php | ||
28_Iterator.php | ||
29_Advanced_value_binder.php | ||
30_Template.php | ||
31_Document_properties_write_xls.php | ||
31_Document_properties_write.php | ||
37_Page_layout_view.php | ||
38_Clone_worksheet.php | ||
39_Dropdown.php | ||
40_Duplicate_style.php | ||
41_Password.php | ||
42_RichText.php | ||
43_Merge_workbooks.php | ||
44_Worksheet_info.php | ||
45_Quadratic_equation_solver.php | ||
46_ReadHtml.php |