be tolerant of XHTML self-closing tags when parsing the input in wxHTML (patch by kulick@hildensia.de)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-03-29 15:01:15 +00:00
parent 231b9591aa
commit ad20c567c2

View File

@@ -311,7 +311,7 @@ wxHtmlTag::wxHtmlTag(wxHtmlTag *parent,
while ((i < end_pos) &&
((c = *(i++)) != wxT(' ') && c != wxT('\r') &&
c != wxT('\n') && c != wxT('\t') &&
c != wxT('>')))
c != wxT('>') && c != wxT('/')))
{
if ((c >= wxT('a')) && (c <= wxT('z')))
c -= (wxT('a') - wxT('A'));