58 Commits

Author SHA1 Message Date
rickg%netscape.com
35b0b37df3 landing residual style handling; r=harishd, buster, kmcclusk for various parts; a=jar
git-svn-id: svn://10.0.0.236/trunk@56275 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 07:53:20 +00:00
rickg%netscape.com
0abfa57047 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.


git-svn-id: svn://10.0.0.236/trunk@55839 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-10 04:01:26 +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
harishd%netscape.com
1e6fe5a7f5 This checkin contains combined work of rickg and harishd
Harishd's Changes:
 Fix for bugs
 2749    - Tweaked strict comment handling, i.e., <!------> is now treated as an illegal comment in strict mode
16934   - Rectifed reporting of JS line error when a newline is found within a tag.
15204   - Made TEXTAREA content to reflect the source document.
11979, 16826  - Stoping the parser properly on receiving the stop-error message.
17594   - Added code to parse <!DOCTYPE> content correctly.
17496   - Building up the stack for orphaned OPTIONs

r=rickg

Rickg's Changes:
  rickg will be posting comments on his changes by 11/12/99.

r=harishd


git-svn-id: svn://10.0.0.236/trunk@53402 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 03:53:11 +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
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
rickg%netscape.com
685d8d596e fixed bug 15290; eliminated a leak; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@49805 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:54:53 +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
kipp%netscape.com
89cd4dd015 Fixed name of CID to be CID
git-svn-id: svn://10.0.0.236/trunk@49452 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:02:20 +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
18a7c600b5 Fix mem leak similar to 13641
git-svn-id: svn://10.0.0.236/trunk@47177 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 21:50:04 +00:00
akkana%netscape.com
bcaf5ec635 Fix memory leak 13641: don't allocate a new CAttributeToken unless we're going to pass it to AddAttribute
git-svn-id: svn://10.0.0.236/trunk@47156 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 20:26:14 +00:00
akkana%netscape.com
60e68b3f1c 13052: move comment handling to OpenContainer, to ensure that open/close tags are balanced
git-svn-id: svn://10.0.0.236/trunk@46196 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 19:09:36 +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
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
jfrancis%netscape.com
744e1a0e4c assorted work to expose nav html dtd to editor
git-svn-id: svn://10.0.0.236/trunk@40185 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 22:52:48 +00:00
rickg%netscape.com
94ea0e1b16 switching to faster string APIs
git-svn-id: svn://10.0.0.236/trunk@40069 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 03:09:16 +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
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
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
rickg%netscape.com
8cc14193f7 final features for parsing engine (WIP); lots of bug fixes
git-svn-id: svn://10.0.0.236/trunk@31835 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-16 05:27:23 +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
rickg%netscape.com
716929551b major rev to parsing engine
git-svn-id: svn://10.0.0.236/trunk@26286 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-05 06:55:49 +00:00
briano%netscape.com
7fbe49f21d Added a newline at the end of the file to make a couple of Unix builds happier.
git-svn-id: svn://10.0.0.236/trunk@25559 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-30 01:48:20 +00:00
rickg%netscape.com
b91799a999 minor fixes to parser; fixed DoCopy
git-svn-id: svn://10.0.0.236/trunk@24668 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-22 10:19:09 +00:00
rickg%netscape.com
2a7f41a86b fixed a dozen bugs
git-svn-id: svn://10.0.0.236/trunk@24432 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-19 08:47:51 +00:00
kostello%netscape.com
212c5568d0 Added nsIHTMLContentSink::DoFragment() method.
Added support for conversion of HTML entities in output


git-svn-id: svn://10.0.0.236/trunk@24161 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-15 05:08:36 +00:00
kostello%netscape.com
32ae1e3029 Fixed bug 3664: not checking for null condition
git-svn-id: svn://10.0.0.236/trunk@23900 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-12 06:50:41 +00:00
brade%netscape.com
f51a003d2b add static to 2 functions to reduce Macintosh compiler warnings
git-svn-id: svn://10.0.0.236/trunk@22727 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 14:54:48 +00:00
rickg%netscape.com
5012f4e582 small bug fixes and removal of global statics
git-svn-id: svn://10.0.0.236/trunk@22072 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 06:33:54 +00:00
kostello%netscape.com
77c015350f Updated save code to match CSS "Selector to String" code.
We now output the selector from CSS style rules again
when we save a document.


git-svn-id: svn://10.0.0.236/trunk@21769 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 17:59:51 +00:00
rickg%netscape.com
7d4f2c2c76 new primaryDetect code in DTD detection system; fixes XIF
git-svn-id: svn://10.0.0.236/trunk@21236 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 23:45:44 +00:00
rickg%netscape.com
d444ccf989 fixed a wad of little bugs and added regression test
git-svn-id: svn://10.0.0.236/trunk@20772 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 07:38:27 +00:00
kostello%netscape.com
ded383e7e5 Added NS_INIT_REFCNT in the constructors
git-svn-id: svn://10.0.0.236/trunk@20256 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 16:38:10 +00:00
kostello%netscape.com
34cb44acbc Updated XIFDTD token processing to match Rick's changes
by imitating behavior found in nsWellFormedDTD.cpp


git-svn-id: svn://10.0.0.236/trunk@18780 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-27 16:37:53 +00:00
rickg%netscape.com
20a3af2667 fixed a wad of parser bugs
git-svn-id: svn://10.0.0.236/trunk@18556 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 01:24:31 +00:00
rickg%netscape.com
2884211b1d fixed a dozen new parser bugs
git-svn-id: svn://10.0.0.236/trunk@17861 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-15 19:29:35 +00:00
rickg%netscape.com
c8fc6237d4 A wad of changes to the parser. See my update
git-svn-id: svn://10.0.0.236/trunk@17433 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-09 01:09:02 +00:00
rickg%netscape.com
78d79cf0d2 improvements to recursively parser calls
git-svn-id: svn://10.0.0.236/trunk@15345 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 02:55:59 +00:00
rickg%netscape.com
8694b27dc6 added tag handling support for future use
git-svn-id: svn://10.0.0.236/trunk@14604 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 19:45:09 +00:00
rickg%netscape.com
e507069774 first pass support for view-source
git-svn-id: svn://10.0.0.236/trunk@14424 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-11 11:55:32 +00:00
kostello%netscape.com
141b2ee43d Fix bug 658.
Needed to update to nsXIFDTD to match new nsSkippedContentToken API


git-svn-id: svn://10.0.0.236/trunk@11273 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 21:25:22 +00:00
kipp%netscape.com
10b6617c48 Fixup AddRef/Release and some constructors to use NS_ADDREF (etc) macros
git-svn-id: svn://10.0.0.236/trunk@9955 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-12 19:33:48 +00:00
rickg%netscape.com
6b0996df7c lots of performance work, bug fixes, and tag handling upgrades
git-svn-id: svn://10.0.0.236/trunk@8807 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-29 05:08:20 +00:00
rickg%netscape.com
2167e0743c many parser bugs; better backward propagation
git-svn-id: svn://10.0.0.236/trunk@7818 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-12 08:53:55 +00:00
kostello%netscape.com
f7e923f8f1 Transfered CollectAttributes from CNavDTD.cpp -- code which was commented out
as part of a previous checkin


git-svn-id: svn://10.0.0.236/trunk@7385 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-05 21:50:20 +00:00
rickg%netscape.com
8f5813c0a2 WIP for token reduction and a few bug fixes
git-svn-id: svn://10.0.0.236/trunk@7298 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-05 02:01:44 +00:00