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:
@@ -311,7 +311,7 @@ wxHtmlTag::wxHtmlTag(wxHtmlTag *parent,
|
|||||||
while ((i < end_pos) &&
|
while ((i < end_pos) &&
|
||||||
((c = *(i++)) != wxT(' ') && c != wxT('\r') &&
|
((c = *(i++)) != wxT(' ') && c != wxT('\r') &&
|
||||||
c != wxT('\n') && c != wxT('\t') &&
|
c != wxT('\n') && c != wxT('\t') &&
|
||||||
c != wxT('>')))
|
c != wxT('>') && c != wxT('/')))
|
||||||
{
|
{
|
||||||
if ((c >= wxT('a')) && (c <= wxT('z')))
|
if ((c >= wxT('a')) && (c <= wxT('z')))
|
||||||
c -= (wxT('a') - wxT('A'));
|
c -= (wxT('a') - wxT('A'));
|
||||||
|
Reference in New Issue
Block a user