diff options
author | Eike Rathke <erack@redhat.com> | 2013-05-16 23:53:30 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-05-16 23:56:31 +0200 |
commit | bb7360ca9929e9b395b3c903f460c9ed5efdce4d (patch) | |
tree | ecb78ce292539e093ba74ed71b17424450a6646c /include | |
parent | 96c2986dd46d963dae1c3b9fa3a8f2ebf05e8f65 (diff) |
resolved fdo#56772 keep track of HTML ON/OFF tokens
Regression introduced with 11cbcb8b08b540b144a5df744e9fba0b6ba8144a
followed by 56d6589368c2e88cffec0c2e518f7c90863eeae6
Deep from svtools/source/svhtml/parhtml.cxx HTMLParser::_GetNextToken()
only a HTML_TABLEDATA_OFF was generated for <td .../> without a matching
HTML_TABLEDATA_ON (actually same for all <XXX/> ON/OFF tokens). This
confuses a state machine that doesn't keep track of such unexpected
closures and also expects all attributes of an element at an ON token.
Only the parser knows this is actually one token but needs to generate
separate ON/OFF tokens.
These bugs mentioned in the original code and commits are still fixed
with this change:
https://bugs.freedesktop.org/show_bug.cgi?id=34666
https://bugs.freedesktop.org/show_bug.cgi?id=36080
https://bugs.freedesktop.org/show_bug.cgi?id=36390
Change-Id: I2b3190d297a35ee3dfda95f9a4841f7c53ed4a92
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/parhtml.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/svtools/parhtml.hxx b/include/svtools/parhtml.hxx index 9011dad9a266..7df1d76239ba 100644 --- a/include/svtools/parhtml.hxx +++ b/include/svtools/parhtml.hxx @@ -144,6 +144,8 @@ private: sal_uInt32 nPre_LinePos; // Pos in der Line im PRE-Tag + int mnPendingOffToken; ///< OFF token pending for a <XX.../> ON/OFF ON token + String aEndToken; protected: |