558 Commits

Author SHA1 Message Date
rickg%netscape.com
fd0be64d4f wrong API, sorry
git-svn-id: svn://10.0.0.236/trunk@30078 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:49:48 +00:00
rickg%netscape.com
804e566231 update for bug 5544
git-svn-id: svn://10.0.0.236/trunk@30077 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:25:20 +00:00
rickg%netscape.com
845245bb71 fixed bug 5611
git-svn-id: svn://10.0.0.236/trunk@30076 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:24:24 +00:00
rickg%netscape.com
fc7fad7024 fixed bug 5846
git-svn-id: svn://10.0.0.236/trunk@30075 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:23:12 +00:00
rickg%netscape.com
d9084b8e80 added DOM interfaces for paste
git-svn-id: svn://10.0.0.236/trunk@30074 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-04 04:22:31 +00:00
kostello%netscape.com
b095432a67 Small update to fix for bug #5525. Approval for checkin: chofmann.
git-svn-id: svn://10.0.0.236/trunk@29973 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:16:14 +00:00
kostello%netscape.com
472d53575b 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. :)


git-svn-id: svn://10.0.0.236/trunk@29963 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 18:41:23 +00:00
rickg%netscape.com
3d80de2210 fixed ABW in nsTagStack and updated to string2 API
git-svn-id: svn://10.0.0.236/trunk@29952 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-02 00:37:25 +00:00
harishd%netscape.com
c9629c2047 Fix for a crasher. Opening <BODY> in DidBuildModel()
for documents that that don't have an open <BODY> or
<FRAMESET>.
R=rickg A=chofmann


git-svn-id: svn://10.0.0.236/trunk@29826 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-30 01:52:38 +00:00
rickg%netscape.com
d492983b7a fixed bug 5606
git-svn-id: svn://10.0.0.236/trunk@29730 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-28 06:52:25 +00:00
bruce%cybersight.com
5078864b28 Remove -lnetlib from link lines. Not needed.
git-svn-id: svn://10.0.0.236/trunk@29691 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-28 05:30:09 +00:00
ftang%netscape.com
e593e4d54e add new constant for charset source
git-svn-id: svn://10.0.0.236/trunk@29579 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 23:32:50 +00:00
harishd%netscape.com
d4612198da Allowing form elements to be contained anywhere inside
a table.  Fix for bug 4322.


git-svn-id: svn://10.0.0.236/trunk@29570 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 22:56:27 +00:00
rickg%netscape.com
74b6adf904 fixed bugs 4482 and 5460
git-svn-id: svn://10.0.0.236/trunk@29268 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 22:49:04 +00:00
rickg%netscape.com
119eebea1c fixed bugs: 4482 and 5460
git-svn-id: svn://10.0.0.236/trunk@29267 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 22:48:07 +00:00
ftang%netscape.com
f9b3f0d574 add SetDocumentCharset method to nsIParser, move nsCharsetSource from nsScanner.h to nsIParser.h
git-svn-id: svn://10.0.0.236/trunk@29179 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 17:49:45 +00:00
bruce%cybersight.com
ed4fb79ac6 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.
git-svn-id: svn://10.0.0.236/trunk@29163 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 07:31:09 +00:00
kostello%netscape.com
1a6701bd85 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


git-svn-id: svn://10.0.0.236/trunk@29162 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 06:16:49 +00:00
bruce%cybersight.com
7a7bf03dcd Make destructor virtual (approved by rickg).
git-svn-id: svn://10.0.0.236/trunk@29148 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-25 22:01:14 +00:00
harishd%netscape.com
5cc529b5e4 Cleaned up HandleOmittedTag() and HandleSavedTokensAbove().
git-svn-id: svn://10.0.0.236/trunk@29146 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-25 21:55:05 +00:00
rickg%netscape.com
fb1366a173 more backout
git-svn-id: svn://10.0.0.236/trunk@29101 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-25 04:10:37 +00:00
rickg%netscape.com
85df707cc9 perf improvement for macaddict.com (and others)
git-svn-id: svn://10.0.0.236/trunk@29092 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-25 01:43:06 +00:00
rickg%netscape.com
df6418fdb2 removed dup identifier
git-svn-id: svn://10.0.0.236/trunk@29091 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-25 01:35:45 +00:00
nisheeth%netscape.com
21c925aca3 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.
git-svn-id: svn://10.0.0.236/trunk@29052 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 10:06:35 +00:00
nisheeth%netscape.com
219ffa4c38 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.
git-svn-id: svn://10.0.0.236/trunk@29046 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 08:39:06 +00:00
nisheeth%netscape.com
6922c01ae7 We are not using the XML_UNICODE_WCHAR_T define on any platform. So, no need to define it.
git-svn-id: svn://10.0.0.236/trunk@29045 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 08:34:43 +00:00
nisheeth%netscape.com
f87d9ae7f2 Fix for bug 5447. Check for #define XML_UNICODE_WCHAR_T before using the data type wchar_t.
git-svn-id: svn://10.0.0.236/trunk@29044 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 08:33:34 +00:00
rickg%netscape.com
f0f299ee3e tweak to dtd context
git-svn-id: svn://10.0.0.236/trunk@29001 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-24 00:57:42 +00:00
bruce%cybersight.com
a5ecc8a2ad This file is compiled by a C compiler. C++ comments are off-limits!! Permission to checkin granted by shaver.
git-svn-id: svn://10.0.0.236/trunk@28795 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 04:33:28 +00:00
shaver%netscape.com
4e30afe03e 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
git-svn-id: svn://10.0.0.236/trunk@28726 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-22 20:51:47 +00:00
donm%netscape.com
cf660f0818 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.


git-svn-id: svn://10.0.0.236/trunk@28712 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-22 18:37:35 +00:00
nisheeth%netscape.com
0f36734d11 Expat's switch to unicode buffers confused the error reporting code. Fixed.
git-svn-id: svn://10.0.0.236/trunk@28695 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-22 09:25:31 +00:00
nisheeth%netscape.com
d155b4330b 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.
git-svn-id: svn://10.0.0.236/trunk@28677 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-22 06:27:56 +00:00
nisheeth%netscape.com
9206493933 Fix for bug 4463. Expat now accepts unicode buffers.
git-svn-id: svn://10.0.0.236/trunk@28666 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-22 05:31:18 +00:00
nisheeth%netscape.com
7fa9663faf Turning on unicode chars in expat.
git-svn-id: svn://10.0.0.236/trunk@28665 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-22 05:27:16 +00:00
ftang%netscape.com
2d84bea050 remove PRBool* oContinue from the Notify method
git-svn-id: svn://10.0.0.236/trunk@28575 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 23:44:27 +00:00
ftang%netscape.com
be67ff1fa9 add PRUint32 aDocumentID to the Notify method of nsIElementObserver interface
git-svn-id: svn://10.0.0.236/trunk@28522 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 21:04:39 +00:00
ftang%netscape.com
2f859539f4 add new files for PICS and Charset observation, have not change makefile yet
git-svn-id: svn://10.0.0.236/trunk@28493 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 19:51:38 +00:00
rickg%netscape.com
637b083ac5 added observerdictionary
git-svn-id: svn://10.0.0.236/trunk@28443 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 05:36:47 +00:00
rickg%netscape.com
c1a9c636d1 sync with new nsString2 API
git-svn-id: svn://10.0.0.236/trunk@28426 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 04:02:14 +00:00
nisheeth%netscape.com
19c0df3b7c 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.
git-svn-id: svn://10.0.0.236/trunk@28144 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:43:14 +00:00
harishd%netscape.com
64a8c2ce0a Fix for build breakage
git-svn-id: svn://10.0.0.236/trunk@27690 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:59:41 +00:00
harishd%netscape.com
42f76454d0 Fix for the build breakage.
git-svn-id: svn://10.0.0.236/trunk@27687 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:57:23 +00:00
harishd%netscape.com
99e69cd449 For handling illegal-contents in tables
git-svn-id: svn://10.0.0.236/trunk@27640 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:16:24 +00:00
harishd%netscape.com
3900f50744 Added method for popping attribute tokens
git-svn-id: svn://10.0.0.236/trunk@27637 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:14:59 +00:00
harishd%netscape.com
2ac469a43a Adding support for handling illegal-contents in table
git-svn-id: svn://10.0.0.236/trunk@27634 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:14:05 +00:00
harishd%netscape.com
187ffbd764 Adding method HandleSavedTokens().
git-svn-id: svn://10.0.0.236/trunk@27631 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:13:38 +00:00
harishd%netscape.com
99d584608f Added methods to support illegal-contents
git-svn-id: svn://10.0.0.236/trunk@27627 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:12:41 +00:00
harishd%netscape.com
cacfc36761 Replaced eHTMLTags stack to nsDeque and
Added methods to support bad-contents.


git-svn-id: svn://10.0.0.236/trunk@27625 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:11:46 +00:00
harishd%netscape.com
889fe85867 Setting Bit kBadContentWatch for table related
tags.


git-svn-id: svn://10.0.0.236/trunk@27620 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:10:11 +00:00