Commit Graph
55 Commits
Author SHA1 Message Date
[email protected] 7303862101 This fixes PDT+Bug:20228. The essential problem was the lack of refcounting on tokenizers. Also fixed unchecked
dereferences in expattokenizer. r=kmcclusk; a=chofmann.
1999-12-10 04:01:26 +00:00
[email protected] 3abca0bf7e Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
[email protected] 20621227af updated xPL license boilerplate to v1.1, [email protected],[email protected] 1999-11-06 03:43:54 +00:00
[email protected] 6d3a7ba804 r=harishd, a=chofmann. Fix for bugs 11992, 10563. New lines get reported in the XML document prolog. Now, JS errors in XML report correct line numbers. 1999-11-03 23:50:16 +00:00
[email protected] 824ba18df3 Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
[email protected] 4498f2e50b r=pollmann. Check local DTD directory for dtd files and, if found, load them from there. 1999-11-02 01:16:37 +00:00
[email protected] 9c9fb65e66 r=nisheeth. Fix for bug 9781 submitted by Johnny Stenbeck ([email protected]). Thanks Johnny. 1999-10-28 01:50:37 +00:00
[email protected] 30c9c9a0d3 Follow-up to fix for bug 10456. I made the earlier changes to the non-Necko part of the code! Making the same changes to the ifdef NECKO part. 1999-10-26 02:42:23 +00:00
[email protected] 2b9740dd44 Bugs 10456, 15027, 11948. r=harishd. We no longer try to load up external DTD files unless those DTD files are referred to via a chrome url. 1999-10-26 01:58:41 +00:00
[email protected] 327935a2ec fixing a memory leak, just use an nsAutoString. bug=15380, r=harishd 1999-10-13 23:59:27 +00:00
[email protected] 921d2e7a2b Fix for Bugs
13640, 13736 - Memory leaks - R=rickg
1312 - Hooked up XHTML DOCTYPE - R=rickg
7590 - Prematuredly closing <SCRIPT> on seeing </SCRIPTERR>
2749 - Strict comment handling for noquirks mode - R=rickg
14955 - LEGEND inside FIELDSET was causing infinite looping - R=rickg,pollmann
14952 - LABEL got closed on seeing SPAN (LABEL can contain SPAN ) - R=pollmann
15381 - comment handling for XIF and HTML - R=akkana
15346 - Stray end tag caused loading blank document - R=rickg,pollmann
1999-10-06 19:04:29 +00:00
[email protected] 0176bd92b3 Eliminate a warning 1999-09-21 02:09:46 +00:00
[email protected] c051b946f8 Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked. 1999-09-09 22:05:05 +00:00
[email protected] 3a075fc029 Fix a memory leak. 1999-08-29 20:29:07 +00:00
[email protected] ccfcac2577 Patch to bug 11724. Fix suspec`ious buffer overrun problem. It prevents
double byte Ja texts in DTD being loaded correctly.
1999-08-27 21:11:35 +00:00
[email protected] e95761bddc Fixed a warning on Linux. 1999-08-24 06:47:11 +00:00
[email protected] ba8554a3ed Fix for bug 8251. We needed to resolve relative URLs when we loaded external DTDs. This had been fixed earlier but the fix needed to get replicated for the Necko code path. 1999-08-11 05:53:37 +00:00
[email protected] 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
[email protected] 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
[email protected] 857cdf8351 Don't set the default handler for now. It might be causing the Linux build to go orange. 1999-07-26 08:22:35 +00:00
[email protected] 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
[email protected] f8d4650038 prevent crash on startup. 1999-07-22 07:42:37 +00:00
[email protected] 9cae3a5483 Fix Necko build bustage. Rename local variable ret to rv. 1999-07-21 20:20:50 +00:00
[email protected] 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
[email protected] 61a33642b8 Big changes for Necko load groups. Things are much happier now. Now images work (on pages, but not in chrome). 1999-07-16 11:14:36 +00:00
[email protected] 8e8039847c Fix for bug 8703. We now display errors for incomplete XML files like "<b><c></c>". XML_Parse() was not being called with the isFinal parameter set to TRUE after the last chunk of data was passed to expat. Fixed. 1999-07-15 08:23:37 +00:00
[email protected] 66090be01f Necko stuff for dealing with load groups when opening URLs. 1999-07-09 21:18:47 +00:00
[email protected] c977f5475a More necko ifdefs. 1999-07-02 06:37:07 +00:00
[email protected] ff025cf016 Solaris needs function declarations, adding header file for NECKO=1 case. 1999-07-02 06:17:57 +00:00
[email protected] 50ff493e60 Fix build bustage. 1999-07-02 03:20:48 +00:00
[email protected] cc97be03e0 Hook up James Clark's external DTD support; protected by XML_DTD. 1999-07-02 02:35:28 +00:00
[email protected] 14d2f729cd Added comment handler 1999-06-29 00:44:26 +00:00
[email protected] 753ac43fff Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too. 1999-06-23 03:29:44 +00:00
[email protected] 28fa2f7d49 External DTD support. (but wrapped in #ifdef EXTERNAL_ENTITY_SUPPORT) 1999-06-15 23:20:01 +00:00
[email protected] ec4549f06a Propagating NS_ERROR_HTMLPARSER_STOPPARSING on XML error. 1999-06-10 23:23:50 +00:00
[email protected] fc107fc38c fixed bug 6597 and added memory allocation conditioning 1999-05-19 05:01:46 +00:00
[email protected] 1b04086df5 Fixed the error reporting code's math for the final time, hopefully. Also fixed the off by one error for the textual arrow that points out the error location. 1999-04-24 10:06:35 +00:00
[email protected] 85ca30b0d1 Rick Gessner helped unpretzel the logic here to get the
right answer, but suggests that this kind of math is
no longer necessary with nsString.
fixes build bustage.
1999-04-22 18:37:35 +00:00
[email protected] 4cb10645a9 Expat's switch to unicode buffers confused the error reporting code. Fixed. 1999-04-22 09:25:31 +00:00
[email protected] d89446e066 Fixing Mac build bustage. Expat has started returning wchar_t * (wide chars) because it supports Unicode buffers. Those wchar_t *s needed to be cast to PRUnichar *s. 1999-04-22 06:27:56 +00:00
[email protected] 974bb84a8b Fix for bug 4463. Expat now accepts unicode buffers. 1999-04-22 05:31:18 +00:00
[email protected] 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
[email protected] 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
[email protected] b7310def66 major rev to parsing engine 1999-04-05 06:55:49 +00:00
[email protected] aa5a4592d8 Do not set a default handler for expat. This enables internal entitity substitution in expat. 1999-04-02 02:46:53 +00:00
[email protected] 631e515939 - Send out the source line where the error occurred from inside PushXMLErrorToken().
- Add the 'parsererror' and 'sourcetext' tags to the HTML tag enum.
1999-03-11 05:36:50 +00:00
[email protected] 8ff496107d Removed bogus addition of text for newlines 1999-03-10 01:19:35 +00:00
[email protected] a4cf51d64b - We weren't adding the tag text to the token created for the end tag. Fixed.
- Tokens for CDATA sections were not being created.  Fixed.
- The length of the parse buffer is passed into ParseXMLBuffer() because it is available from the scanner.  We were doing a strlen() to determine the length which was inefficient.
1999-03-09 07:39:04 +00:00
[email protected] 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
[email protected] a2d39ff03b enabled expat in parsing engine 1999-03-03 08:34:23 +00:00