nisheeth%netscape.com
1608c3e134
Fix for bug 21647. r=harishd. The expat tokenizer was keeping static state and clobbering it because multiple instances of it were running at the same time. It no longer uses static state but sets the state as user data on the expat parser and gets it back as a parameter in the callbacks from the parser. Placing chrome.rdf files in the locale directory of chrome no longer results in huge windows with no content.
...
git-svn-id: svn://10.0.0.236/trunk@59039 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 08:02:53 +00:00
harishd%netscape.com
f0e1788e4b
Fix for bugs:
...
22485, 20799 ( SCRIPT content processing)
r=vidur,pollmann
Fix for bugs
22260 ( enabling userdifined tags ) - partial fix.
23765 ( handling misplaced newlines/whitespace).
r=rickg
git-svn-id: svn://10.0.0.236/trunk@57953 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 20:35:57 +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
warren%netscape.com
51881fbcea
Landing no_neckoutil2_branch. Bug #11159 . Removes neckoutil_s.lib from build which helps beos and openvms.
...
git-svn-id: svn://10.0.0.236/trunk@54722 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:50:42 +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
nisheeth%netscape.com
e3cf2c3428
r=harishd, a=chofmann. Fix for bugs 11992, 10563. New lines get reported in the XML document prolog. Now, JS errors in XML report correct line numbers.
...
git-svn-id: svn://10.0.0.236/trunk@52750 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 23:50:16 +00:00
cls%seawood.org
3e1a9ca95a
Removed unused NECKO ifdefs.
...
a=leaf
git-svn-id: svn://10.0.0.236/trunk@52607 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 23:34:03 +00:00
nisheeth%netscape.com
add2edbda0
r=pollmann. Check local DTD directory for dtd files and, if found, load them from there.
...
git-svn-id: svn://10.0.0.236/trunk@52456 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:16:37 +00:00
nisheeth%netscape.com
151090fbb2
r=nisheeth. Fix for bug 9781 submitted by Johnny Stenbeck (jst@citec.fi). Thanks Johnny.
...
git-svn-id: svn://10.0.0.236/trunk@52033 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:50:37 +00:00
nisheeth%netscape.com
aea3ade8fe
Follow-up to fix for bug 10456. I made the earlier changes to the non-Necko part of the code! Making the same changes to the ifdef NECKO part.
...
git-svn-id: svn://10.0.0.236/trunk@51815 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 02:42:23 +00:00
nisheeth%netscape.com
aef9243c78
Bugs 10456, 15027, 11948. r=harishd. We no longer try to load up external DTD files unless those DTD files are referred to via a chrome url.
...
git-svn-id: svn://10.0.0.236/trunk@51808 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:58:41 +00:00
beard%netscape.com
c49f31fb70
fixing a memory leak, just use an nsAutoString. bug=15380, r=harishd
...
git-svn-id: svn://10.0.0.236/trunk@50625 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:59:27 +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
kipp%netscape.com
c4b871aef6
Eliminate a warning
...
git-svn-id: svn://10.0.0.236/trunk@48480 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 02:09:46 +00:00
warren%netscape.com
de60d2685c
Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked.
...
git-svn-id: svn://10.0.0.236/trunk@46637 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 22:05:05 +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
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
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
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
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
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
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
sspitzer%netscape.com
fd0969195a
prevent crash on startup.
...
git-svn-id: svn://10.0.0.236/trunk@40637 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 07:42:37 +00:00
nisheeth%netscape.com
447fb46f75
Fix Necko build bustage. Rename local variable ret to rv.
...
git-svn-id: svn://10.0.0.236/trunk@40504 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 20:20:50 +00:00
nisheeth%netscape.com
647e7ff1b9
Fix for bugs 10259 and 8251. We resolve relative urls to absolute urls when loading up external DTDs in the XML parser. We no longer crash if a non-existent DTD is specified.
...
git-svn-id: svn://10.0.0.236/trunk@40459 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 19:48:14 +00:00
warren%netscape.com
84a03567fa
Big changes for Necko load groups. Things are much happier now. Now images work (on pages, but not in chrome).
...
git-svn-id: svn://10.0.0.236/trunk@39678 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 11:14:36 +00:00
nisheeth%netscape.com
77b04b9c0b
Fix for bug 8703. We now display errors for incomplete XML files like "<b><c></c>". XML_Parse() was not being called with the isFinal parameter set to TRUE after the last chunk of data was passed to expat. Fixed.
...
git-svn-id: svn://10.0.0.236/trunk@39521 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 08:23:37 +00:00
warren%netscape.com
5c37d2ec29
Necko stuff for dealing with load groups when opening URLs.
...
git-svn-id: svn://10.0.0.236/trunk@38929 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-09 21:18:47 +00:00
warren%netscape.com
6f6a203b54
More necko ifdefs.
...
git-svn-id: svn://10.0.0.236/trunk@38016 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 06:37:07 +00:00
mcafee%netscape.com
f230a876db
Solaris needs function declarations, adding header file for NECKO=1 case.
...
git-svn-id: svn://10.0.0.236/trunk@38008 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 06:17:57 +00:00
tao%netscape.com
7f7de309bc
Fix build bustage.
...
git-svn-id: svn://10.0.0.236/trunk@37952 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 03:20:48 +00:00
tao%netscape.com
b0f5202f33
Hook up James Clark's external DTD support; protected by XML_DTD.
...
git-svn-id: svn://10.0.0.236/trunk@37942 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 02:35:28 +00:00
vidur%netscape.com
3cc0446d53
Added comment handler
...
git-svn-id: svn://10.0.0.236/trunk@37303 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 00:44:26 +00:00
warren%netscape.com
06d707be48
Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too.
...
git-svn-id: svn://10.0.0.236/trunk@36440 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 03:29:44 +00:00
cata%netscape.com
42c5df2c1b
External DTD support. (but wrapped in #ifdef EXTERNAL_ENTITY_SUPPORT)
...
git-svn-id: svn://10.0.0.236/trunk@35469 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:20:01 +00:00
harishd%netscape.com
f8e87704a2
Propagating NS_ERROR_HTMLPARSER_STOPPARSING on XML error.
...
git-svn-id: svn://10.0.0.236/trunk@34681 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:23:50 +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
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
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
4cb9ed22c6
- 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.
git-svn-id: svn://10.0.0.236/trunk@26804 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-08 09:21:16 +00:00
nisheeth%netscape.com
6eadea42c7
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.
git-svn-id: svn://10.0.0.236/trunk@26469 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 08:17:03 +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
nisheeth%netscape.com
46543a2792
Do not set a default handler for expat. This enables internal entitity substitution in expat.
...
git-svn-id: svn://10.0.0.236/trunk@26001 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 02:46:53 +00:00
nisheeth%netscape.com
6d7dd79951
- Send out the source line where the error occurred from inside PushXMLErrorToken().
...
- Add the 'parsererror' and 'sourcetext' tags to the HTML tag enum.
git-svn-id: svn://10.0.0.236/trunk@23668 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-11 05:36:50 +00:00
vidur%netscape.com
7944b75ced
Removed bogus addition of text for newlines
...
git-svn-id: svn://10.0.0.236/trunk@23443 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 01:19:35 +00:00
nisheeth%netscape.com
bbb4dffad0
- We weren't adding the tag text to the token created for the end tag. Fixed.
...
- Tokens for CDATA sections were not being created. Fixed.
- The length of the parse buffer is passed into ParseXMLBuffer() because it is available from the scanner. We were doing a strlen() to determine the length which was inefficient.
git-svn-id: svn://10.0.0.236/trunk@23294 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 07:39:04 +00:00