695 Commits

Author SHA1 Message Date
ftang%netscape.com
83734eae50 1. detect BOM, 2. Implement XML 1.0 Appendex F, 3. move hack from nsParser.cpp to nsScanner.cpp so we won't damage UCS2 data
git-svn-id: svn://10.0.0.236/trunk@45206 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 22:25:17 +00:00
tao%netscape.com
363d048c1f Fix a memory leak.
git-svn-id: svn://10.0.0.236/trunk@45077 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-29 20:29:07 +00:00
rickg%netscape.com
6f7f47de92 corrected string usage errors and removed warning
git-svn-id: svn://10.0.0.236/trunk@45065 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-29 17:35:19 +00:00
tao%netscape.com
678c68a2aa Patch to bug 11724. Fix suspec`ious buffer overrun problem. It prevents
double byte Ja texts in DTD being loaded correctly.


git-svn-id: svn://10.0.0.236/trunk@44887 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 21:11:35 +00:00
akkana%netscape.com
5f5d0e5d35 11249: add /body tag when writing body-only
git-svn-id: svn://10.0.0.236/trunk@44866 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 20:54:57 +00:00
beard%netscape.com
8a9ef196d0 plugged some memory leaks.
git-svn-id: svn://10.0.0.236/trunk@44714 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 03:46:33 +00:00
ftang%netscape.com
22a8bbbcc8 add one more constant
git-svn-id: svn://10.0.0.236/trunk@44527 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 21:38:24 +00:00
harishd%netscape.com
6ba9a03c27 Minor adjustments in consuming attributes ( Tracking down '<').
git-svn-id: svn://10.0.0.236/trunk@44520 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 21:27:43 +00:00
rickg%netscape.com
efdfeda5e1 autogen content if onDataAvailable is never called
git-svn-id: svn://10.0.0.236/trunk@44446 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 03:47:37 +00:00
rickg%netscape.com
9a8d155dac removed warnings, unused debug code and a crufy comment
git-svn-id: svn://10.0.0.236/trunk@44439 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 03:10:47 +00:00
jdunn%netscape.com
cf198397fa Fix AIX compiler errors.
git-svn-id: svn://10.0.0.236/trunk@44418 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 01:14:11 +00:00
harishd%netscape.com
1b68d91169 Fix for bug#s 3737, 12062, 9059.
git-svn-id: svn://10.0.0.236/trunk@44376 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 22:14:13 +00:00
harishd%netscape.com
90e9a69f1f Fix for bug# 10609 and partial fix for 10593.
git-svn-id: svn://10.0.0.236/trunk@44310 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:35:05 +00:00
akkana%netscape.com
131d318ad4 Revise the doc encoder and content sink APIs yet again to make it easier
to add new flags (pass a flag in the constructor, rather than specific
booleans.  This in order to fix:
11249: Add flag to write only the body in html output.


git-svn-id: svn://10.0.0.236/trunk@44308 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:30:19 +00:00
ftang%netscape.com
85eaada20b add two new constant
git-svn-id: svn://10.0.0.236/trunk@44267 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 07:17:46 +00:00
nisheeth%netscape.com
0551dd45cf Fixed a warning on Linux.
git-svn-id: svn://10.0.0.236/trunk@44264 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 06:47:11 +00:00
mccabe%netscape.com
0ee0c94bc4 NS_DECL_NSIFOO spam for nsIRequest, nsIChannel, nsIStreamListener, nsIStreamObserver, all from netwerk/
convert manual interface method declarations in implementation class to NS_DECL_NSIFOO macro.


git-svn-id: svn://10.0.0.236/trunk@44059 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-22 13:26:18 +00:00
ramiro%netscape.com
233f49736d Dont link in the parser into the app. Link it in dynamically where needed.
This makes the link depenencies on unix be more like windows.  Makes it
easier to track dependency problems and simplifies makefiles.


git-svn-id: svn://10.0.0.236/trunk@43408 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 13:54:48 +00:00
ramiro%netscape.com
4517f5371f Link expat and xmltok into the htmlparser statically. Not into the app.
git-svn-id: svn://10.0.0.236/trunk@43405 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-17 12:46:23 +00:00
sfraser%netscape.com
9ad6f45b0f Part of fix for 11790, crash on quit. Need delete[] on an array. r dp, a chofmann
git-svn-id: svn://10.0.0.236/trunk@43322 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 23:27:54 +00:00
nisheeth%netscape.com
046dfd83a1 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.
git-svn-id: svn://10.0.0.236/trunk@43171 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 05:53:37 +00:00
akkana%netscape.com
2647b03d3a 11572: default do-header to FALSE, which fixes a bunch of copy/paste bugs
git-svn-id: svn://10.0.0.236/trunk@43117 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-11 01:42:31 +00:00
slamm%netscape.com
2125e5aafb Add a newline to the end of the file.
git-svn-id: svn://10.0.0.236/trunk@43078 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 23:17:10 +00:00
harishd%netscape.com
0ed2af9017 Moved kLegalOpen from BODY to SCRIPT.
CanContain() now checks for kLegalOpen.


git-svn-id: svn://10.0.0.236/trunk@42811 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:28:24 +00:00
harishd%netscape.com
afe45386a9 Added code to handle "stray" block closer ( bug# 11365 ).
Did some cleanup..


git-svn-id: svn://10.0.0.236/trunk@42810 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 21:26:55 +00:00
nisheeth%netscape.com
a03e6e3036 Fix for bug 8607. DOCTYPE decls are now propagated from the XML tokenizer to the XML content sink.
git-svn-id: svn://10.0.0.236/trunk@42648 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 06:26:01 +00:00
akkana%netscape.com
ccf4e538ba Don't convert charset on nsStrings, as suggested in comments in bug 6672
git-svn-id: svn://10.0.0.236/trunk@42532 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 20:50:37 +00:00
rickg%netscape.com
f80c94e310 fixed bug 6659
git-svn-id: svn://10.0.0.236/trunk@42431 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 09:20:42 +00:00
harishd%netscape.com
0b5f28b9f6 Disabling RGESS_DEBUG which I had accidentally
checked in!!


git-svn-id: svn://10.0.0.236/trunk@42021 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 21:08:36 +00:00
harishd%netscape.com
d19e4cebb8 Hardcoding PI length in GetProcessingInstruction().
git-svn-id: svn://10.0.0.236/trunk@41894 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 00:12:22 +00:00
harishd%netscape.com
4991bec52e Tweaks... Removed an extra append call.
git-svn-id: svn://10.0.0.236/trunk@41893 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 00:07:58 +00:00
harishd%netscape.com
8fa5cb6d88 Partial fix of bug 10593.
git-svn-id: svn://10.0.0.236/trunk@41891 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 00:03:52 +00:00
harishd%netscape.com
4e43438e4e Removed warning. mDTDState is of type nsresult
git-svn-id: svn://10.0.0.236/trunk@41889 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 00:03:00 +00:00
harishd%netscape.com
8b7a6944dd Fix for bug# 11001. Allowing <P> to
contain <TABLE> - for backwards compatibility


git-svn-id: svn://10.0.0.236/trunk@41888 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 00:01:16 +00:00
harishd%netscape.com
fcd30e3c4e Fix for bug#s 10530, and 10596.
Conditioning the raw buffer by removing the unwanted null chars.


git-svn-id: svn://10.0.0.236/trunk@41738 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-31 20:16:30 +00:00
akkana%netscape.com
2b020f827c Fix 10621: write NS_LINEBREAK when we see the html whitespace tag
git-svn-id: svn://10.0.0.236/trunk@41618 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-30 23:40:57 +00:00
nisheeth%netscape.com
fb004bfa97 Fix for bug 10829. Removed an extra ADDREF to the content sink which was causing leakage of sinks and webshells.
git-svn-id: svn://10.0.0.236/trunk@41599 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-30 20:13:07 +00:00
mscott%netscape.com
ab177da65c fix build breakage by including config.mak
git-svn-id: svn://10.0.0.236/trunk@41517 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-29 02:39:17 +00:00
harishd%netscape.com
2a7485fb4a Fixed sink addref bug [A] rickg, cyeh
git-svn-id: svn://10.0.0.236/trunk@41491 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 21:46:07 +00:00
nisheeth%netscape.com
4aa16e828e Adding a new parameter, aMode, to nsIContentSink::AddDocTypeDecl.
git-svn-id: svn://10.0.0.236/trunk@41447 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 06:56:05 +00:00
nisheeth%netscape.com
7334ff2ea7 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.
git-svn-id: svn://10.0.0.236/trunk@41380 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 01:21:54 +00:00
harishd%netscape.com
aa418dc7e3 Made EnableParse() to return nsresult. Used to return PRBool
git-svn-id: svn://10.0.0.236/trunk@41356 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 23:32:30 +00:00
bruce%cybersight.com
4e78218d9d Add newlines for unix compilers.
git-svn-id: svn://10.0.0.236/trunk@41305 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 20:31:21 +00:00
harishd%netscape.com
5d3d91189e Fix for Bug# 3571.
Added Terminate() method in nsIDTD.


git-svn-id: svn://10.0.0.236/trunk@41187 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 00:54:46 +00:00
harishd%netscape.com
82f6dccd4b Fixed a bug in DidBuildModel().
Approved by: rickg and chofmann.


git-svn-id: svn://10.0.0.236/trunk@41159 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 21:07:26 +00:00
nisheeth%netscape.com
f1eb6fcb89 Don't set the default handler for now. It might be causing the Linux build to go orange.
git-svn-id: svn://10.0.0.236/trunk@41122 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 08:22:35 +00:00
nisheeth%netscape.com
0069328861 - 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.


git-svn-id: svn://10.0.0.236/trunk@41106 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 05:40:25 +00:00
rickg%netscape.com
d24bcf85fd substitute calls to deprecated string API
git-svn-id: svn://10.0.0.236/trunk@41074 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 00:24:02 +00:00
rickg%netscape.com
aed2a73b26 remove warnings, bug fixes, API enhancements
git-svn-id: svn://10.0.0.236/trunk@41054 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-25 17:23:24 +00:00
peterl%netscape.com
5b7693afd3 remove warning
git-svn-id: svn://10.0.0.236/trunk@40986 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-24 18:58:48 +00:00