Commit Graph

615 Commits

Author SHA1 Message Date
ftang%netscape.com
372e136d36 change nsIElementObserver and nsCharsetObserver per harish request. We have not build w/ these three file yet. 1999-05-04 20:20:52 +00:00
ftang%netscape.com
dedba98925 better error handling in append method 1999-05-04 20:01:55 +00:00
rickg%netscape.com
60531f0ad3 wrong API, sorry 1999-05-04 04:49:48 +00:00
rickg%netscape.com
662511abf2 update for bug 5544 1999-05-04 04:25:20 +00:00
rickg%netscape.com
87fb2e0bbf fixed bug 5611 1999-05-04 04:24:24 +00:00
rickg%netscape.com
e1068dc18e fixed bug 5846 1999-05-04 04:23:12 +00:00
rickg%netscape.com
b9155004a4 added DOM interfaces for paste 1999-05-04 04:22:31 +00:00
kostello%netscape.com
b025153c86 Small update to fix for bug #5525. Approval for checkin: chofmann. 1999-05-03 20:16:14 +00:00
kostello%netscape.com
dbc32c5326 Added support to encode the document as either a nsString or an nsIOutputStream.
In the case of the stream, the document is encoded using the document defined charset
or the user may override the charset.

Added constructors for creating a sink using a nsIOutputStream or an nsString.

Removed all HTML and TEXT encoding which relied on references to ostream. Using John McMullen's
platform independent streaming code in its place. :)
1999-05-03 18:41:23 +00:00
rickg%netscape.com
ec29bbf96e fixed ABW in nsTagStack and updated to string2 API 1999-05-02 00:37:25 +00:00
harishd%netscape.com
26480fa653 Fix for a crasher. Opening <BODY> in DidBuildModel()
for documents that that don't have an open <BODY> or
<FRAMESET>.
R=rickg A=chofmann
1999-04-30 01:52:38 +00:00
rickg%netscape.com
39c510cae9 fixed bug 5606 1999-04-28 06:52:25 +00:00
bruce%cybersight.com
25345b7651 Remove -lnetlib from link lines. Not needed. 1999-04-28 05:30:09 +00:00
ftang%netscape.com
56d6072e93 add new constant for charset source 1999-04-27 23:32:50 +00:00
harishd%netscape.com
a37df20ee6 Allowing form elements to be contained anywhere inside
a table.  Fix for bug 4322.
1999-04-27 22:56:27 +00:00
rickg%netscape.com
74b9f0fd7b fixed bugs 4482 and 5460 1999-04-26 22:49:04 +00:00
rickg%netscape.com
4a4577fc6c fixed bugs: 4482 and 5460 1999-04-26 22:48:07 +00:00
ftang%netscape.com
55c8150ac3 add SetDocumentCharset method to nsIParser, move nsCharsetSource from nsScanner.h to nsIParser.h 1999-04-26 17:49:45 +00:00
bruce%cybersight.com
df9112216e Fix for AIX build bustage: "../../../htmlparser/src/nsXIFDTD.cpp", line 1690.31: 1540-224: (S) Conversion from "nsString" to a reference to a non-const type "nsString&" requires a temporary. 1999-04-26 07:31:09 +00:00
kostello%netscape.com
7720827a36 Added support to use the specified document charset when encoding a
document to HTML to Text. The charset information is first encoded
in XIF and then that information is used when interpretting the unicode
for output.

Added support to output character entity information which should address
bug 4709
1999-04-26 06:16:49 +00:00
bruce%cybersight.com
6dbd934a12 Make destructor virtual (approved by rickg). 1999-04-25 22:01:14 +00:00
harishd%netscape.com
fc1568ebb0 Cleaned up HandleOmittedTag() and HandleSavedTokensAbove(). 1999-04-25 21:55:05 +00:00
rickg%netscape.com
ba43fa632b more backout 1999-04-25 04:10:37 +00:00
rickg%netscape.com
6f8ed28039 perf improvement for macaddict.com (and others) 1999-04-25 01:43:06 +00:00
rickg%netscape.com
dff3d8e638 removed dup identifier 1999-04-25 01:35:45 +00:00
nisheeth%netscape.com
bfb3f8194e 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
nisheeth%netscape.com
2e1de882d7 Don't use XML_UNICODE_WCHAR_T (defines characters with the wchar_t data type whose size varies by platform) for strings in expat. Use XML_UNICODE (defines characters with the unsigned short data type whose size is the same across all platforms) instead. 1999-04-24 08:39:06 +00:00
nisheeth%netscape.com
d3d5178f37 We are not using the XML_UNICODE_WCHAR_T define on any platform. So, no need to define it. 1999-04-24 08:34:43 +00:00
nisheeth%netscape.com
b20392f14f Fix for bug 5447. Check for #define XML_UNICODE_WCHAR_T before using the data type wchar_t. 1999-04-24 08:33:34 +00:00
rickg%netscape.com
d49bb31e13 tweak to dtd context 1999-04-24 00:57:42 +00:00
bruce%cybersight.com
21777167b0 This file is compiled by a C compiler. C++ comments are off-limits!! Permission to checkin granted by shaver. 1999-04-23 04:33:28 +00:00
shaver%netscape.com
c7750ce0e4 XML_UNICODE_WCHAR_T is not suitable for use where sizeof(wchar_t) != 2. That includes Linux at least, so let's just not do this on Unix at all for now. a=donm 1999-04-22 20:51:47 +00:00
donm%netscape.com
2d8d712c70 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
nisheeth%netscape.com
af210a1bed Expat's switch to unicode buffers confused the error reporting code. Fixed. 1999-04-22 09:25:31 +00:00
nisheeth%netscape.com
7c92d40046 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
nisheeth%netscape.com
7aec01badb Fix for bug 4463. Expat now accepts unicode buffers. 1999-04-22 05:31:18 +00:00
nisheeth%netscape.com
63059d3d4e Turning on unicode chars in expat. 1999-04-22 05:27:16 +00:00
ftang%netscape.com
1e652fb669 remove PRBool* oContinue from the Notify method 1999-04-21 23:44:27 +00:00
ftang%netscape.com
04aafeaa8a add PRUint32 aDocumentID to the Notify method of nsIElementObserver interface 1999-04-21 21:04:39 +00:00
ftang%netscape.com
60fa9193f0 add new files for PICS and Charset observation, have not change makefile yet 1999-04-21 19:51:38 +00:00
rickg%netscape.com
1f73279dd4 added observerdictionary 1999-04-21 05:36:47 +00:00
rickg%netscape.com
8cc2bdda24 sync with new nsString2 API 1999-04-21 04:02:14 +00:00
nisheeth%netscape.com
604980a25d Patch to get expat to compile on SGI. Many thanks to Tim Rowley (tor@cs.brown.edu) for doing all the work on this. I am simply checking it in for him. 1999-04-19 22:43:14 +00:00
harishd%netscape.com
55d5545e76 Fix for build breakage 1999-04-15 20:59:41 +00:00
harishd%netscape.com
d95e4beb33 Fix for the build breakage. 1999-04-15 20:57:23 +00:00
harishd%netscape.com
f821f24dce For handling illegal-contents in tables 1999-04-15 20:16:24 +00:00
harishd%netscape.com
35bc558c83 Added method for popping attribute tokens 1999-04-15 20:14:59 +00:00
harishd%netscape.com
0dbcd9f5af Adding support for handling illegal-contents in table 1999-04-15 20:14:05 +00:00
harishd%netscape.com
194e158179 Adding method HandleSavedTokens(). 1999-04-15 20:13:38 +00:00
harishd%netscape.com
cfb7df54de Added methods to support illegal-contents 1999-04-15 20:12:41 +00:00
harishd%netscape.com
6ddea62873 Replaced eHTMLTags stack to nsDeque and
Added methods to support bad-contents.
1999-04-15 20:11:46 +00:00
harishd%netscape.com
d073fe4ae5 Setting Bit kBadContentWatch for table related
tags.
1999-04-15 20:10:11 +00:00
harishd%netscape.com
de40ecd854 Added Bit kBadContentWatch 1999-04-15 20:09:40 +00:00
harishd%netscape.com
615ffe34cd *** empty log message *** 1999-04-15 20:08:49 +00:00
harishd%netscape.com
ab9c01780b Added Methods BeginContext() and EndContext()
to handle illegal-contents in tables
1999-04-15 20:08:04 +00:00
vidur%netscape.com
78f743c391 Fixes for bugs 4783 and 2243. Content can now be added via the DOM during document loading. document.written content can also cause the parser to block. 1999-04-13 22:22:51 +00:00
nisheeth%netscape.com
90fea6fe51 Correcting logic for enabling expat by default on the Mac. Approved by chofmann. 1999-04-09 02:17:00 +00:00
rickg%netscape.com
8a85f22dc8 fixed token bug in parser that caused script error 1999-04-08 11:37:00 +00:00
rickg%netscape.com
6baa115577 fixed token bug in parser that caused script error 1999-04-08 11:36:29 +00:00
nisheeth%netscape.com
7ff1bc40e9 - 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
rickg%netscape.com
bc41d2b9f5 fixed mail/news crash and bug 4606 1999-04-07 21:05:19 +00:00
scc%netscape.com
a767ccc633 generalize fstreams to our own input streams, this is the first part of a change to allow XUL from streams 1999-04-06 20:39:11 +00:00
ftang%netscape.com
2ed0ecc629 temp fix bug 4463 untill the nsParser SetDefaultCharset defined 1999-04-06 18:50:22 +00:00
nisheeth%netscape.com
bfc73dae1e 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
sfraser%netscape.com
12b680936c Fix 4153. Change the link order so that some weird condition that causes MSL to throw a bad cast exception no longer happens, in the optimized build. 1999-04-06 03:12:59 +00:00
harishd%netscape.com
da26bdc25e allowing <BODY> to contain itself. Added kSelf to
the BODY's inclusion bit.
1999-04-05 20:57:06 +00:00
harishd%netscape.com
1fabaf603a Added code to handle multiple bodies. 1999-04-05 20:55:15 +00:00
briano%netscape.com
c45b38c778 Replaced the C++ comments with C comments. 1999-04-05 09:11:11 +00:00
rickg%netscape.com
85a5f8b95e update to sync up with new nsString 1999-04-05 08:50:07 +00:00
rickg%netscape.com
874c3e34e7 update to sync up with nsString api 1999-04-05 08:44:55 +00:00
rickg%netscape.com
769155c102 removed a line of debug code 1999-04-05 07:16:17 +00:00
rickg%netscape.com
3f87b86577 major rev to parsing engine 1999-04-05 06:55:49 +00:00
rickg%netscape.com
df308f0007 added synonym 'IMAGE' for 'IMG' tag 1999-04-05 06:54:42 +00:00
nisheeth%netscape.com
3d9136b2bd Checking in latest expat version dated 3/7/1999... 1999-04-04 05:50:50 +00:00
nisheeth%netscape.com
86faa58139 Do not set a default handler for expat. This enables internal entitity substitution in expat. 1999-04-02 02:46:53 +00:00
jdunn%netscape.com
3055682243 Add library for linking 1999-03-31 23:02:11 +00:00
mcafee%netscape.com
f90a6f5450 Need prototype for toupper() on Solaris. 1999-03-31 08:37:14 +00:00
rickg%netscape.com
3d63eba82c fixed AIX build problem 1999-03-31 07:44:35 +00:00
briano%netscape.com
a8acc9185e Added a newline at the end of the file so some of the Unix builds wouldn't barf. 1999-03-31 00:03:53 +00:00
nisheeth%netscape.com
90a495ab1e Fixing Unix build bustage. Added nsExpatTokenizer to the list of files to be compiled. 1999-03-30 07:35:39 +00:00
nisheeth%netscape.com
24cab2c8f4 Fixing Mac build bustage. The expat debug and optimized libraries were both being linked into the debug and optimized builds. Changed things so that the debug library is linked into the debug build and the optimized library into the optimized build. 1999-03-30 07:26:38 +00:00
nisheeth%netscape.com
1cd4ad8964 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
nisheeth%netscape.com
3f8393527a The parser now statically links to the expat library... 1999-03-30 06:24:32 +00:00
ramiro%netscape.com
532f507e84 delete vs. delete[] vs. free fixes.
Thanks to "Bruce Mitchener, Jr." <bruce@cybersight.com for finding all these
and making patches.
1999-03-30 05:26:59 +00:00
briano%netscape.com
c934cc8737 Added a newline at the end of the file to make a couple of Unix builds happier. 1999-03-30 01:48:20 +00:00
rickg%netscape.com
2ad00ba13e another fix for entities 1999-03-25 01:27:41 +00:00
rickg%netscape.com
a8c2fd2ce8 fixed badly formed entity bug 1999-03-23 00:23:51 +00:00
harishd%netscape.com
e1db9ebcc4 Ignoring unwanted tags in <head> 1999-03-22 18:46:01 +00:00
rickg%netscape.com
b12228ad37 minor fixes to parser; fixed DoCopy 1999-03-22 10:19:09 +00:00
rods%netscape.com
f33501ef59 Added nsString, so the conversion goes to a string and to a stream
Eventually, we will want it to just go to a string.
1999-03-19 15:53:07 +00:00
rickg%netscape.com
4c5766e328 removed memory leak 1999-03-19 10:20:29 +00:00
rickg%netscape.com
af6882cfab fixed a dozen bugs 1999-03-19 08:47:51 +00:00
harishd%netscape.com
0c6e6332fa Added code to avoid head tag getting closed
on encountering newlines and whitespaces.  This would
prevent script tag, inside head, from opening body tag - made
up body tag.
1999-03-18 00:22:10 +00:00
leaf%mozilla.org
4ad9f70d5d Landing nspr library name change, and plevent function call change. 1999-03-17 21:32:03 +00:00
rickg%netscape.com
4ced31210b removed warnings and partially fixed M3 1999-03-16 07:06:48 +00:00
kostello%netscape.com
c6bdcd7c2c Fix build bustage. Move entity code to nsHTMLContentSinkStream until
this can be correctly addressed.
1999-03-15 19:19:01 +00:00
rickg%netscape.com
c19d087fa8 two tiny fixes that have been sitting around awhile 1999-03-15 08:38:41 +00:00
kostello%netscape.com
d01545d4c5 Added nsIHTMLContentSink::DoFragment() method.
Added support for conversion of HTML entities in output
1999-03-15 05:08:36 +00:00
ftang%netscape.com
ea4b036763 add meta tag reload hack. reviewed by rickg 1999-03-12 14:31:20 +00:00
ramiro%netscape.com
8ce50ad7cf Make it possible to prefix mozilla dlls that conflict with system dlls. 1999-03-12 12:43:04 +00:00