77 Commits

Author SHA1 Message Date
akkana%netscape.com
cad9903a6b Remove a debug printf. Trivial one-line change
git-svn-id: svn://10.0.0.236/trunk@55447 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-06 21:49:04 +00:00
rhp%netscape.com
9fface217d Landing new txt to HTML scanning functionality - Bug #: 19251 - r: rhp (contributed by Ben Bucksch)
git-svn-id: svn://10.0.0.236/trunk@55395 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-06 04:53:29 +00:00
akkana%netscape.com
4cd9cfb812 20253, 20246: Fix extra ; after entity output. Clean up the code which
inserts the "html" text for an open html tag.  Changes from rickg to
remove large amounts of obsolete code from nsXIFDTD. r=rickg


git-svn-id: svn://10.0.0.236/trunk@54933 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 22:09:21 +00:00
akkana%netscape.com
6bd223eae3 19515: fix a XIF DTD problem where text nodes with names corresponding
to XIF node names didn't make it into the output.  Fix from rick, r=me.
Also, a temp fix to the html output sink to get around bug 20246,
and a couple of test case tweaks.


git-svn-id: svn://10.0.0.236/trunk@54617 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 22:33:32 +00:00
akkana%netscape.com
50c0c63208 20062: following Naoki's advice on which flag to use for entity conversion
git-svn-id: svn://10.0.0.236/trunk@54446 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 22:59:34 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
akkana%netscape.com
1824e7ce91 Fix Sun build bustage: older gcc can't do nsCOMPtr on a forward type
git-svn-id: svn://10.0.0.236/trunk@52428 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:16:15 +00:00
akkana%netscape.com
0df1ff715c Formatting whitespace changes only
git-svn-id: svn://10.0.0.236/trunk@52425 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:53:50 +00:00
akkana%netscape.com
9dd7ffd0ef 17275, 16285, 15204: Switch to using nsISaveAsCharset for both charset and entity conversion. r=nhotta
git-svn-id: svn://10.0.0.236/trunk@52415 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:34:44 +00:00
harishd%netscape.com
bb63ac5e3f Fix fof bug 15674 - Putting back char* buffer.
r=akkana


git-svn-id: svn://10.0.0.236/trunk@52241 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:59:09 +00:00
akkana%netscape.com
10a4fb8f22 16988: filter out BR type=_moz, which the editor inserts. r=syd
git-svn-id: svn://10.0.0.236/trunk@51555 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:03:29 +00:00
harishd%netscape.com
6cd114ddff Fix for the bustage.
r=pollmann


git-svn-id: svn://10.0.0.236/trunk@51311 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:14:50 +00:00
harishd%netscape.com
676f148787 Fixed Bug 16285 - Replaced char* with nsCAutoString for mBuffer.
This fixes the crash on doing Ctrl-c in editor.

r=akkana


git-svn-id: svn://10.0.0.236/trunk@51308 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 22:35:12 +00:00
harishd%netscape.com
77f9635cce 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


git-svn-id: svn://10.0.0.236/trunk@49988 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:04:29 +00:00
vidur%netscape.com
30b1f0a71b Converted parser into a module. NS_NewFoo routines are temporarily inlined to call component manager. Introduced nsIParserService for temporary replacement of nsHTMLTags and nsHTMLEntities static methods. RickG to do complete review.
git-svn-id: svn://10.0.0.236/trunk@49499 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:01:48 +00:00
harishd%netscape.com
7a4a0e5db4 Fix for bugs 13498, 14199, 8389, 13640.
git-svn-id: svn://10.0.0.236/trunk@48445 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:24:28 +00:00
harishd%netscape.com
10a9e27c68 Adding support for DOCTYPE.
Also, fix for bug 13566.


git-svn-id: svn://10.0.0.236/trunk@47593 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 17:54:23 +00:00
akkana%netscape.com
d444fffb40 Backing out change to write the override charset in a meta tag.
The charset menu should be changing the meta tag in the document,
which the output sink will pick up automatically without needing
any special code.  See bugs 12085 (on seeing two meta charset tags)
and 7849 (that the charset menu should change the actual meta tag
in the document).


git-svn-id: svn://10.0.0.236/trunk@46850 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 22:32:32 +00:00
akkana%netscape.com
9d858f00b6 12085: Add meta tag to specify charset
git-svn-id: svn://10.0.0.236/trunk@45559 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 23:36:57 +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
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
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
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
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
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
scc%netscape.com
b498e2909d explicitly define kCharsetConversionManagerCID only in files that need it ... move to canonical scheme for defining and using IIDs and CIDs
git-svn-id: svn://10.0.0.236/trunk@40614 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 05:25:17 +00:00
akkana%netscape.com
adcff9de66 Bug 9749: insert a newline after a PRE tag even if mode isn't formatted
git-svn-id: svn://10.0.0.236/trunk@40322 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 20:54:46 +00:00
akkana%netscape.com
eb9a480bb8 Oops, #else in wrong place
git-svn-id: svn://10.0.0.236/trunk@40188 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 23:09:50 +00:00
akkana%netscape.com
4ab5c89c92 Use the Range methods instead of homebrew stuff to determine when a point is contained in a range; eliminate code duplication
git-svn-id: svn://10.0.0.236/trunk@40176 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 22:41:49 +00:00
peterl%netscape.com
82107c30bd changed to preprocessor for code generation for tag & entity tables
cleanup tag and entity lookup apis


git-svn-id: svn://10.0.0.236/trunk@39926 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-18 00:12:32 +00:00
rickg%netscape.com
1de3f3dd0a fix bugs 8523, 9127, parially fix 8803
git-svn-id: svn://10.0.0.236/trunk@38647 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-07 07:40:35 +00:00
akkana%netscape.com
2787dec93c 5924: Fix XIF handling of HTML comments, and also pass through the document's original formatting whitespace
git-svn-id: svn://10.0.0.236/trunk@36697 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-24 20:15:52 +00:00
akkana%netscape.com
6332477235 Use NS_LINEBREAK from nsCRT.h
git-svn-id: svn://10.0.0.236/trunk@36362 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-22 22:05:12 +00:00
akkana%netscape.com
a9a778be57 Oh, drat. Previous fix for const problem also threw away the result
of UnicodeToHTMLString.  This fixes that.


git-svn-id: svn://10.0.0.236/trunk@35588 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:52:47 +00:00
akkana%netscape.com
6d203047f2 Fix const problem
git-svn-id: svn://10.0.0.236/trunk@35551 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:56:44 +00:00
akkana%netscape.com
245bf1d96e 6671: map dom codes back to entity form on output
git-svn-id: svn://10.0.0.236/trunk@35507 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:26:13 +00:00
bruce%cybersight.com
9ac574ec89 Fix HP build bustage. Must comment out text after an #endif
git-svn-id: svn://10.0.0.236/trunk@35438 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:38:14 +00:00
akkana%netscape.com
ae46c37f43 6180: Use proper Mac linebreaks on Mac; 6083: Don't output '=value' in attributes unless there is a value
git-svn-id: svn://10.0.0.236/trunk@35313 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:42:16 +00:00
akkana%netscape.com
9d72b542eb Change NS_ASSERTION to NS_VERIFY -- not a fatal condition
git-svn-id: svn://10.0.0.236/trunk@35266 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:00:50 +00:00
rickg%netscape.com
bf2176589a oops -- I didn't mean to update these -- backing out
git-svn-id: svn://10.0.0.236/trunk@33225 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 03:04:16 +00:00
rickg%netscape.com
4cf139826e fixed nsString2 usage error introduced by observerlist change
git-svn-id: svn://10.0.0.236/trunk@33224 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 03:01:22 +00:00
rickg%netscape.com
1f82bdb300 fixed bug 6597 and added memory allocation conditioning
git-svn-id: svn://10.0.0.236/trunk@32284 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-19 05:01:46 +00:00
sfraser%netscape.com
9d1696fc0b Fix for charset handling in HTML output (r kostello)
git-svn-id: svn://10.0.0.236/trunk@30666 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-07 05:03:48 +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
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
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
harishd%netscape.com
3b1e086b68 Added Methods BeginContext() and EndContext()
to handle illegal-contents in tables


git-svn-id: svn://10.0.0.236/trunk@27615 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:08:04 +00:00
ramiro%netscape.com
52ef5e02cd delete vs. delete[] vs. free fixes.
Thanks to "Bruce Mitchener, Jr." <bruce@cybersight.com for finding all these
and making patches.


git-svn-id: svn://10.0.0.236/trunk@25592 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-30 05:26:59 +00:00