openbsd-ports/mail/mozilla-thunderbird/patches/patch-htmlparser_src_nsElementTable_cpp
aanriot 2a96b9df6f Mozilla.org bug 210658:
Fix hanging with non-standard HTML elements parsererror, sourcetext.

discussed with naddy@ and wilfried@;
patches from and "go ahead, commit" naddy@
2005-10-21 08:47:14 +00:00

36 lines
2.0 KiB
Plaintext

$OpenBSD: patch-htmlparser_src_nsElementTable_cpp,v 1.1 2005/10/21 08:47:14 aanriot Exp $
--- htmlparser/src/nsElementTable.cpp.orig Sat Apr 10 06:08:26 2004
+++ htmlparser/src/nsElementTable.cpp Wed Oct 19 15:11:46 2005
@@ -934,15 +934,6 @@ void InitializeElementTable(void) {
/*special parents,kids,skip*/ &gParamParents,0,eHTMLTag_unknown);
Initialize(
- /*tag*/ eHTMLTag_parsererror,
- /*req-parent excl-parent*/ eHTMLTag_unknown,eHTMLTag_unknown,
- /*rootnodes,endrootnodes*/ &gRootTags,&gRootTags,
- /*autoclose starttags and endtags*/ &gDivAutoClose,0,0,0,
- /*parent,incl,exclgroups*/ kNone, (kSelf|kFlowEntity), kNone,
- /*special props, prop-range*/ 0, kNoPropRange,
- /*special parents,kids,skip*/ 0,0,eHTMLTag_unknown);
-
- Initialize(
/*tag*/ eHTMLTag_plaintext,
/*req-parent excl-parent*/ eHTMLTag_unknown,eHTMLTag_unknown,
/*rootnodes,endrootnodes*/ &gRootTags,&gRootTags,
@@ -1031,15 +1022,6 @@ void InitializeElementTable(void) {
/*autoclose starttags and endtags*/ 0,0,0,0,
/*parent,incl,exclgroups*/ (kFlowEntity|kHeadContent), kNone, kNone, // Added kFlowEntity|kHeadContent & kNonContainer in
/*special props, prop-range*/ kNonContainer,kDefaultPropRange, // Ref. to Bug 25749
- /*special parents,kids,skip*/ 0,0,eHTMLTag_unknown);
-
- Initialize(
- /*tag*/ eHTMLTag_sourcetext,
- /*req-parent excl-parent*/ eHTMLTag_unknown,eHTMLTag_unknown,
- /*rootnodes,endrootnodes*/ &gRootTags,&gRootTags,
- /*autoclose starttags and endtags*/ &gDivAutoClose,0,0,0,
- /*parent,incl,exclgroups*/ kNone, (kSelf|kFlowEntity), kNone,
- /*special props, prop-range*/ 0,kDefaultPropRange,
/*special parents,kids,skip*/ 0,0,eHTMLTag_unknown);
Initialize(