nisheeth@netscape.com
609bb12eb7
Fix for bug 8607. DOCTYPE decls are now propagated from the XML tokenizer to the XML content sink.
1999-08-07 06:26:01 +00:00
harishd@netscape.com
6ee2fe4249
Hardcoding PI length in GetProcessingInstruction().
1999-08-03 00:12:22 +00:00
nisheeth@netscape.com
fd67f88e34
Adding a new parameter, aMode, to nsIContentSink::AddDocTypeDecl.
1999-07-28 06:56:05 +00:00
nisheeth@netscape.com
a2f1091540
More work to fix bug 8607. This is still not enabled at run-time because one of the XML tests isn't displaying properly. XML decls and DOCTYPE decls will be passed up to the content sink once this is enabled.
1999-07-28 01:21:54 +00:00
harishd@netscape.com
51fb0d3d0b
Fix for Bug# 3571.
...
Added Terminate() method in nsIDTD.
1999-07-27 00:54:46 +00:00
nisheeth@netscape.com
d162e65cd8
- Move AddDocTypeDecl method from nsIXMLContentSink to nsIContentSink.
...
- Fix bug 8607 by passing the XML decl and the doctype decl from the expat tokenizer to the XML DTD.
1999-07-26 05:40:25 +00:00
nisheeth@netscape.com
4aae3b3902
Fix for bugs 10259 and 8251. We resolve relative urls to absolute urls when loading up external DTDs in the XML parser. We no longer crash if a non-existent DTD is specified.
1999-07-21 19:48:14 +00:00
jfrancis@netscape.com
601651100c
assorted work to expose nav html dtd to the editor
1999-07-19 22:49:21 +00:00
harishd@netscape.com
14d1666156
Added Observernotification for XML PI, cleaned up some warnings.
1999-07-16 21:07:54 +00:00
rickg@netscape.com
38f1583696
bug fixes, warning removal, perf. improvements
1999-07-16 17:31:38 +00:00
nisheeth@netscape.com
fbeb6cb8f6
Do not include nsXMLTokenizer.h any more.
1999-06-16 01:31:55 +00:00
nisheeth@netscape.com
fd56314369
We no longer need to check an environment variable before instantiating the expat tokenizer. The next step is to remove the XML tokenizer from the build system.
1999-06-16 01:11:48 +00:00
nisheeth@netscape.com
2fc333f1af
The "Using expat for parsing XML message" is getting annoying. Only print it out for my debug build...
1999-06-04 00:30:23 +00:00
nisheeth@netscape.com
727d51cf0c
Fix for bug 6518. The XML DTD now always gets used when the content type is text/xml.
1999-06-03 19:09:28 +00:00
rickg@netscape.com
9d240d8863
fixed nsString2 usage error introduced by observerlist change
1999-05-29 03:01:22 +00:00
rickg@netscape.com
654d446ef4
small performance enhancement -- less searching
1999-05-28 07:14:08 +00:00
rickg@netscape.com
fc107fc38c
fixed bug 6597 and added memory allocation conditioning
1999-05-19 05:01:46 +00:00
rickg@netscape.com
4f3a22f635
final features for parsing engine (WIP); lots of bug fixes
1999-05-16 05:27:23 +00:00
nisheeth@netscape.com
943c363064
Correcting logic for enabling expat by default on the Mac. Approved by chofmann.
1999-04-09 02:17:00 +00:00
nisheeth@netscape.com
1c41fd72e4
- Enable expat by default. If you run into problems, you can disable expat at run-time by setting NOEXPAT=1 in your environment on Windows and UNIX.
...
On Mac, create a file called NOEXPAT in the directory from which you run the browser.
- Changed nsExpatTokenizer so that it stops parsing buffers once it sees an XML well-formedness error.
1999-04-08 09:21:16 +00:00
nisheeth@netscape.com
3aaae21dc1
1) Fixed a mistaken assumption made by the XML error handling code in nsExpatTokenizer. It no longer treats the error location returned by expat as being relative to the current XML chunk being parsed. Instead, the error location is considered to be relative to the start of the XML file. The lengths of incoming XML chunks are added to a new member variable, mBytesParsed. When an error occurs, we subtract mBytesParsed from the error location returned by expat to give us the offset of the error in the XML chunk.
...
2) When nsWellFormedDTD sees an error token, it dumps the error to cerr and notifies the content sink about it. This is a temporary solution. The right behavior is for the browser to show the error in the content window which, currently, happens only for .XML documents. XUL and RDF files use their own content sinks which do not implement error handling. This needs to change so that code is shared among the XML, RDF, and XUL content sinks. I do not want to fix error handling by just cutting and pasting the error handling code from the XML content sink into the RDF and XUL content sinks.
1999-04-06 08:17:03 +00:00
rickg@netscape.com
b7310def66
major rev to parsing engine
1999-04-05 06:55:49 +00:00
mcafee@netscape.com
4e643a5a44
Need prototype for toupper() on Solaris.
1999-03-31 08:37:14 +00:00
rickg@netscape.com
2a996e99c1
fixed AIX build problem
1999-03-31 07:44:35 +00:00
nisheeth@netscape.com
1716a59815
Removed the compile flag check for enabling expat, James Clark's XML parser. Now, expat can be enabled dynamically at run-time on the Windows and Unix platforms by setting the EXPAT environment variable to 1. On the Mac, create a file called EXPAT in the directory from which you run viewer.exe or apprunner.exe. This dynamic switch is only temporary. Once the bugs associated with expat's parsing of XUL files or XML errors in the XUL files are fixed, the expat parser will become the default.
1999-03-30 06:29:50 +00:00
rickg@netscape.com
5d13ef5293
fixed a dozen bugs
1999-03-19 08:47:51 +00:00
nisheeth@netscape.com
e0026e8e3c
Checking in the first stab at error propagation from the expat parser to the content sink. The flow of control is as follows. The tokenizer creates an error token (CErrorToken) when an error occurs in expat and pushes it onto the token dequeue. The DTD forwards the contents of the token to the content sink, which creates content objects to show the error.
1999-03-08 17:42:54 +00:00
rickg@netscape.com
556eb2c252
ifdef expat until more testing can be done
1999-03-03 08:55:23 +00:00
rickg@netscape.com
a2d39ff03b
enabled expat in parsing engine
1999-03-03 08:34:23 +00:00
nisheeth@netscape.com
f7ed6f8c0d
We've decided to do away with the notion of an nsExpatDTD. The expat tokenizer which encapsulates the expat parser will be driven by nsWellFormedDTD. So, nsExpatTokenizer has changed accordingly. nsWellFormedDTD() creates an nsExpatTokenizer if EXPAT is #define'd; otherwise it creates the old nsXMLTokenizer. nsParser no longer registers and createsthe nsExpatDTD.
1999-03-03 02:34:18 +00:00
rickg@netscape.com
32cfdf42d9
small bug fixes and removal of global statics
1999-02-26 06:33:54 +00:00
rickg@netscape.com
d3c9602234
new primaryDetect code in DTD detection system; fixes XIF
1999-02-18 23:45:44 +00:00
rickg@netscape.com
48ddf9037a
fixed a wad of little bugs and added regression test
1999-02-16 07:38:27 +00:00
hyatt@netscape.com
c846320362
Implementation of the XUL content sink. Added the capability to parse XUL files.
1999-02-03 02:47:06 +00:00
rickg@netscape.com
61d8fbcf4d
fixed a wad of parser bugs
1999-01-26 01:24:31 +00:00
rickg@netscape.com
e429bddf13
fixed a dozen new parser bugs
1999-01-15 19:29:35 +00:00
rickg@netscape.com
24a3ca6842
this fixes some of what ails us with XML
1999-01-12 02:37:22 +00:00
rickg@netscape.com
d596efe232
A wad of changes to the parser. See my update
1999-01-09 01:09:02 +00:00
waterson@netscape.com
bf2cfff330
Allow nsWellFormedDTD to handle text/rdf.
1998-12-02 00:29:31 +00:00
rickg@netscape.com
0ce3104c2f
improvements to recursively parser calls
1998-11-26 02:55:59 +00:00
rickg@netscape.com
289c545b3d
improvements to entity parsing and viewing
1998-11-23 08:01:14 +00:00
rickg@netscape.com
03711a0b48
added tag handling support for future use
1998-11-13 19:45:09 +00:00
rickg@netscape.com
153b1c19c6
allow view-source on XML
1998-11-13 04:36:46 +00:00
vidur@netscape.com
cf3779330e
Added support for CDATA sections.
1998-11-12 23:54:37 +00:00
vidur@netscape.com
08119650b3
Added XML display support. Added NotifyError method to nsIContentSink
1998-11-11 22:04:42 +00:00
rickg@netscape.com
22a58b61b5
first pass support for view-source
1998-11-11 11:55:32 +00:00
rickg@netscape.com
caca79a694
changed contentsink API to support XML
1998-11-10 04:20:40 +00:00
kipp@netscape.com
13c7864250
Fixup AddRef/Release and some constructors to use NS_ADDREF (etc) macros
1998-09-12 19:33:48 +00:00
rickg@netscape.com
2a1526760c
lots of performance work, bug fixes, and tag handling upgrades
1998-08-29 05:08:20 +00:00
rickg@netscape.com
8aacdd4838
many parser bugs; better backward propagation
1998-08-12 08:53:55 +00:00