summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/parhtml.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index dbaae52db17e..eaada2b8eb9a 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1252,6 +1252,14 @@ int HTMLParser::_GetNextToken()
if( '>' != nNextCh && IsParserWorking() )
{
ScanText( '>' );
+
+ // fdo#34666: closing "/>"?:
+ // return HTML_UNKNOWNCONTROL_OFF instead of
+ // HTML_UNKNOWNCONTROL_ON
+ if (aToken.Len() >= 1 && '/' == aToken.GetChar(aToken.Len()-1)) {
+ if (HTML_UNKNOWNCONTROL_ON == nRet)
+ nRet = HTML_UNKNOWNCONTROL_OFF;
+ }
if( sal_Unicode(EOF) == nNextCh && rInput.IsEof() )
{
// zurueck hinter die < gehen und dort neu