nisheeth%netscape.com
3af39c3e8d
Correcting logic for enabling expat by default on the Mac. Approved by chofmann.
...
git-svn-id: svn://10.0.0.236/trunk@26856 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-09 02:17:00 +00:00
nisheeth%netscape.com
4cb9ed22c6
- 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.
git-svn-id: svn://10.0.0.236/trunk@26804 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-08 09:21:16 +00:00
nisheeth%netscape.com
6eadea42c7
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.
git-svn-id: svn://10.0.0.236/trunk@26469 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 08:17:03 +00:00
rickg%netscape.com
716929551b
major rev to parsing engine
...
git-svn-id: svn://10.0.0.236/trunk@26286 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 06:55:49 +00:00
mcafee%netscape.com
28ef284545
Need prototype for toupper() on Solaris.
...
git-svn-id: svn://10.0.0.236/trunk@25701 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 08:37:14 +00:00
rickg%netscape.com
8acf07b452
fixed AIX build problem
...
git-svn-id: svn://10.0.0.236/trunk@25695 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 07:44:35 +00:00
nisheeth%netscape.com
701ccd4aaf
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.
...
git-svn-id: svn://10.0.0.236/trunk@25604 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-30 06:29:50 +00:00
rickg%netscape.com
2a7f41a86b
fixed a dozen bugs
...
git-svn-id: svn://10.0.0.236/trunk@24432 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-19 08:47:51 +00:00
nisheeth%netscape.com
a81177003d
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.
...
git-svn-id: svn://10.0.0.236/trunk@23175 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-08 17:42:54 +00:00
rickg%netscape.com
6bea38145b
ifdef expat until more testing can be done
...
git-svn-id: svn://10.0.0.236/trunk@22704 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 08:55:23 +00:00
rickg%netscape.com
26bb7f0161
enabled expat in parsing engine
...
git-svn-id: svn://10.0.0.236/trunk@22703 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 08:34:23 +00:00
nisheeth%netscape.com
8ce7dc3e65
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.
...
git-svn-id: svn://10.0.0.236/trunk@22679 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 02:34:18 +00:00
rickg%netscape.com
5012f4e582
small bug fixes and removal of global statics
...
git-svn-id: svn://10.0.0.236/trunk@22072 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 06:33:54 +00:00
rickg%netscape.com
7d4f2c2c76
new primaryDetect code in DTD detection system; fixes XIF
...
git-svn-id: svn://10.0.0.236/trunk@21236 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 23:45:44 +00:00
rickg%netscape.com
d444ccf989
fixed a wad of little bugs and added regression test
...
git-svn-id: svn://10.0.0.236/trunk@20772 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 07:38:27 +00:00
hyatt%netscape.com
d6a5085f59
Implementation of the XUL content sink. Added the capability to parse XUL files.
...
git-svn-id: svn://10.0.0.236/trunk@19396 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-03 02:47:06 +00:00
rickg%netscape.com
20a3af2667
fixed a wad of parser bugs
...
git-svn-id: svn://10.0.0.236/trunk@18556 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 01:24:31 +00:00
rickg%netscape.com
2884211b1d
fixed a dozen new parser bugs
...
git-svn-id: svn://10.0.0.236/trunk@17861 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 19:29:35 +00:00
rickg%netscape.com
6b72f77ef5
this fixes some of what ails us with XML
...
git-svn-id: svn://10.0.0.236/trunk@17541 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-12 02:37:22 +00:00
rickg%netscape.com
c8fc6237d4
A wad of changes to the parser. See my update
...
git-svn-id: svn://10.0.0.236/trunk@17433 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-09 01:09:02 +00:00
waterson%netscape.com
ebd8214cae
Allow nsWellFormedDTD to handle text/rdf.
...
git-svn-id: svn://10.0.0.236/trunk@15571 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 00:29:31 +00:00
rickg%netscape.com
78d79cf0d2
improvements to recursively parser calls
...
git-svn-id: svn://10.0.0.236/trunk@15345 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 02:55:59 +00:00
rickg%netscape.com
ef03ca1113
improvements to entity parsing and viewing
...
git-svn-id: svn://10.0.0.236/trunk@15159 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 08:01:14 +00:00
rickg%netscape.com
8694b27dc6
added tag handling support for future use
...
git-svn-id: svn://10.0.0.236/trunk@14604 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 19:45:09 +00:00
rickg%netscape.com
11309dbf4e
allow view-source on XML
...
git-svn-id: svn://10.0.0.236/trunk@14583 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 04:36:46 +00:00
vidur%netscape.com
300e345ba6
Added support for CDATA sections.
...
git-svn-id: svn://10.0.0.236/trunk@14553 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:54:37 +00:00
vidur%netscape.com
38bf6d6724
Added XML display support. Added NotifyError method to nsIContentSink
...
git-svn-id: svn://10.0.0.236/trunk@14466 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 22:04:42 +00:00
rickg%netscape.com
e507069774
first pass support for view-source
...
git-svn-id: svn://10.0.0.236/trunk@14424 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 11:55:32 +00:00
rickg%netscape.com
a7c873a99e
changed contentsink API to support XML
...
git-svn-id: svn://10.0.0.236/trunk@14325 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-10 04:20:40 +00:00
kipp%netscape.com
10b6617c48
Fixup AddRef/Release and some constructors to use NS_ADDREF (etc) macros
...
git-svn-id: svn://10.0.0.236/trunk@9955 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:33:48 +00:00
rickg%netscape.com
6b0996df7c
lots of performance work, bug fixes, and tag handling upgrades
...
git-svn-id: svn://10.0.0.236/trunk@8807 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 05:08:20 +00:00
rickg%netscape.com
2167e0743c
many parser bugs; better backward propagation
...
git-svn-id: svn://10.0.0.236/trunk@7818 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-12 08:53:55 +00:00
rickg%netscape.com
8f5813c0a2
WIP for token reduction and a few bug fixes
...
git-svn-id: svn://10.0.0.236/trunk@7298 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-05 02:01:44 +00:00
rickg%netscape.com
2016c7c883
fixed attribute bug and factored DTDDebug interfaces
...
git-svn-id: svn://10.0.0.236/trunk@6813 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-29 23:43:20 +00:00
rickg%netscape.com
192449c4bc
warning removal
...
git-svn-id: svn://10.0.0.236/trunk@6479 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-25 02:11:02 +00:00
rickg%netscape.com
a927f7ef63
tons-o-fixes in the parser
...
git-svn-id: svn://10.0.0.236/trunk@6422 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 21:57:43 +00:00
kipp%netscape.com
04161762b4
Revised sink API's and others to be more xpcom'ish
...
git-svn-id: svn://10.0.0.236/trunk@5652 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 22:30:39 +00:00
rickg
434bedca96
added WIP support for reentrancy in the parser
...
git-svn-id: svn://10.0.0.236/trunk@5413 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 21:13:09 +00:00
rickg
837fc0806e
dynamic DTD support
...
git-svn-id: svn://10.0.0.236/trunk@5278 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 05:35:23 +00:00