Currently invalid attribute values, including invalid or empty values in CSS attributes in the 'style' attribute, could cause importing property with incorrect value, or NullReferenceException (the document cannot be imported). Examples: ---------------------------------------------------------- <table width=”*”> <tr> <td>More Random Text</td> </tr> </table> The table is imported with 0 width. Instead the width should not be set. ---------------------------------------------------------- <table style="font-size:;"> <tr> <td>More Random Text</td> </tr> </table> NullReferenceException is thrown. ---------------------------------------------------------- <p style='padding: 3px 3px 3xp 7px;'>test</p>
IndexOutOfRangeException is thrown.
----------------------------------------------------------Workaround: replace the invalid values before import: string importString = html.Replace("font-style: ;", "");