Commit Graph
39 Commits
Author SHA1 Message Date
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
rickg@netscape.com 31b78ec17f WIP for token reduction and a few bug fixes 1998-08-05 02:01:44 +00:00
rickg@netscape.com ea391de441 fixed attribute bug and factored DTDDebug interfaces 1998-07-29 23:43:20 +00:00
rickg@netscape.com 11ed2d68b5 warning removal 1998-07-25 02:11:02 +00:00
rickg@netscape.com e24436e3b1 tons-o-fixes in the parser 1998-07-24 21:57:43 +00:00
kipp@netscape.com 4c4281fa01 Revised sink API's and others to be more xpcom'ish 1998-07-15 22:30:39 +00:00
rickg 2717b5d34d added WIP support for reentrancy in the parser 1998-07-13 21:13:09 +00:00
rickg 241a248569 dynamic DTD support 1998-07-10 05:35:23 +00:00