From: Chris W. <ch...@fi...> - 2010-01-20 22:20:06
|
The following HTML source causes a NullPointerException in Node.trimInitialSpace where element.parent is null. Note that it's the space(s) after the span tag that triggers the trimInitialSpace call. Yes, span inside table is not valid, but I wouldn't expect JTidy to NPE. Known issue? Workaround? Thanks. <table> <tr><td></td></tr> <span id="mySpan"> <tr><td></td></tr></span> </table> if (TidyUtils.toBoolean(element.tag.model & Dict.CM_INLINE) && !TidyUtils.toBoolean(element.tag.model & Dict.CM_FIELD) && element.parent.content != element) ... Thanks. -C |