[xml] Patch for frameset parsing in HTMLparser.c
- From: James Bursa <bursa users sourceforge net>
- To: xml gnome org
- Subject: [xml] Patch for frameset parsing in HTMLparser.c
- Date: Sun, 4 Apr 2004 16:29:22 +0100
Using HTMLparser to parse a file like
<head>
<frameset>
currently results in a tree like
ELEMENT html
ELEMENT head
ELEMENT frameset
This patch produces the more useful tree
ELEMENT html
ELEMENT head
ELEMENT frameset
instead. Please consider applying this if it looks correct.
Thanks!
James
__________________________________________________________________________
--- HTMLparser.c 22 Mar 2004 15:22:23 -0000 1.172
+++ HTMLparser.c 3 Apr 2004 14:53:03 -0000
@@ -880,6 +880,7 @@
"head", "p", NULL,
"title", "p", NULL,
"body", "head", "style", "link", "title", "p", NULL,
+"frameset", "head", "style", "link", "title", "p", NULL,
"li", "p", "h1", "h2", "h3", "h4", "h5", "h6", "dl", "address",
"pre", "listing", "xmp", "head", "li", NULL,
"hr", "p", "head", NULL,
@@ -941,6 +942,7 @@
"html",
"head",
"body",
+ "frameset",
NULL
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]