Menu

#21 Html body tag and NullReference exception

v1.0 (example)
closed
nobody
None
5
2014-03-16
2014-01-27
No

If Html has no body tag a NullReference exception is thrown in
ChmDocumentParser.ParseDocument().

Web browsers usually cope with html files without a body tag so this is unexpected. I believe the code is fine except I do not like the error message, I'd say "You need to have a body tag" rather than just null object reference exception was thrown.

Discussion

  • Antonio Fco. Bennasar Obrador

    • Added new check for that in v1.7.1
     
  • Antonio Fco. Bennasar Obrador

    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.