heikki%netscape.com
466eb9093d
Bugs 65848 and 75031, support for application/xml and application/xhtml+xml mime types. This also fixes almost all of content to use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2. r=harishd, valeski (mime types), sr=vidur.
...
git-svn-id: svn://10.0.0.236/trunk@93171 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 19:33:12 +00:00
waterson%netscape.com
1ef6e620b4
Bug 68213. Require users of nsFixedSizeAllocator to specify object size at Free() time to avoid 8 byte overhead per allocation. r=harishd, brendan, shaver, hyatt; sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@91251 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:00:08 +00:00
disttsc%bart.nl
f69c0e7cd8
bug 73339: Remove NS_ConvertToString (just another name for NS_ConvertASCIItoUCS2) from the tree. r=jst, sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@90514 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 11:17:17 +00:00
heikki%netscape.com
a4f8173ec8
Bug 44564. Problems with internal subset, especially with view source XML. Also fixed CDATA section problems. Some cleanups. r=harishd, sr=vidur.
...
git-svn-id: svn://10.0.0.236/trunk@86136 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-03 01:13:55 +00:00
jst%netscape.com
1533a03b6b
Fix crash in the XML error reporter (and doing some cleanup), the format string for printf'ing out numbers should be %d, not %s! r=harishd@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@84656 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-09 19:54:37 +00:00
rickg%netscape.com
c98cf928ae
various bug fixes and landed blizzard patch to remove iostream from parser. r=harish, attinasi, kmcclusk; sr=buster
...
git-svn-id: svn://10.0.0.236/trunk@84554 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 03:37:15 +00:00
vidur%netscape.com
3e62b3f9f3
Changes to parser to allow less copying. Use of the new nsSliding[Sub]String classes so that tokens can hold substrings that keep references into the scanner buffer. Cleaned up token interface and general string usage. r=harishd,heikki sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@83553 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:58:14 +00:00
harishd%netscape.com
69b6374ae7
7670 - Enabling NOSCRIPT content.
...
47827 - Make sure to check DD's hierarchy.
r=jst
git-svn-id: svn://10.0.0.236/trunk@77890 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 18:17:17 +00:00
harishd%netscape.com
34a0c50b1e
46702 ( nsbeta3+ ) Partial - Made token cache to be arena based.
...
r=vidur
git-svn-id: svn://10.0.0.236/trunk@77624 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 18:22:03 +00:00
nisheeth%netscape.com
77a2d6896f
- Fix for nsbeta3+ bug 10292: ID attribute information is passed up from the parser to the content sink and into the node info objects associated with content objects. nsIXMLContent now inherits from nsIStyledContent which allows
...
authors to use ID selectors to target elements in an XML document.
- Checking in a P3P related patch to the pres shell, html document, and xml document from Tom Lendacky (toml@us.ibm.com )
git-svn-id: svn://10.0.0.236/trunk@77529 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 00:35:43 +00:00
rickg%netscape.com
2e1ef1b2c7
fixed several nsbeta2+ bugs; r=harish, buster; a=pdt
...
git-svn-id: svn://10.0.0.236/trunk@71963 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-10 02:53:04 +00:00
harishd%netscape.com
3ae31acebc
Fix for
...
36148 - Mlk [ r= rickg ] nsParser::Parse(string)
39713 - Crash caused by an uninitialized ref. counter
39466 - Handling XML error before calling DidBuildModel().
r=nisheeth
a=waterson
git-svn-id: svn://10.0.0.236/trunk@70609 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-22 21:32:06 +00:00
nisheeth%netscape.com
bf73b5e100
Back out earlier fix to bug 13565. I shouldn't remove the code that dumps XML error messages to the console because the browser window is not going to be around all time, for example, in the case of the profile manager window.
...
git-svn-id: svn://10.0.0.236/trunk@65763 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:43:37 +00:00
nisheeth%netscape.com
057f60e982
Fix for bug 13565. Removed code that dumps XML error messages to console because error messages now show up inside the browser window.
...
git-svn-id: svn://10.0.0.236/trunk@65762 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:13:41 +00:00
scc%netscape.com
dd2b4f8ffb
making string conversions explict
...
git-svn-id: svn://10.0.0.236/trunk@65023 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 08:09:23 +00:00
rickg%netscape.com
c056be4201
removed unused includes; fixed addref bug; r=karnaze
...
git-svn-id: svn://10.0.0.236/trunk@64813 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 00:23:24 +00:00
nisheeth%netscape.com
9c91417984
r=pollmann. Fix for bug 29395. XML error messages now show up in the content area for XML, RDF, and XUL files. Earlier, they would only show up for XML files.
...
- Generate tokens in the expat tokenizer to display an XML error message.
- Process those tokens in the XML DTD
- Add a SetStringValue() method to CToken that accepts an nsString parameter.
- Removed code in the XML content sink's NotifyError() method to create error message content.
git-svn-id: svn://10.0.0.236/trunk@64553 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 01:41:48 +00:00
rickg%netscape.com
bea8b36d30
fixed bug 28825, 30780, 31723 plus wip for travis; r=harishd
...
git-svn-id: svn://10.0.0.236/trunk@64098 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-25 03:35:50 +00:00
rickg%netscape.com
0ab79b600b
fixed 22340, 23749, 23931, 24419, 25522, 25630, 25845 and 25895; r=harishd
...
git-svn-id: svn://10.0.0.236/trunk@60478 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 12:11:29 +00:00
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
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
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
nisheeth%netscape.com
ce3c186894
r=nisheeth. Fix for bug 17237 from Rick Gessner (rickg@netscape.com). Thanks, Rick.
...
git-svn-id: svn://10.0.0.236/trunk@52108 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:40:08 +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
harishd%netscape.com
51c8b6da88
Cleaned up some code.
...
Fixed bugs 5974, 12641, and 12389.
git-svn-id: svn://10.0.0.236/trunk@45396 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:01:21 +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
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
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
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
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
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
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
jfrancis%netscape.com
d4d1113f4f
assorted work to expose nav html dtd to the editor
...
git-svn-id: svn://10.0.0.236/trunk@40179 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 22:49:21 +00:00
harishd%netscape.com
37dab34213
Added Observernotification for XML PI, cleaned up some warnings.
...
git-svn-id: svn://10.0.0.236/trunk@39752 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 21:07:54 +00:00
rickg%netscape.com
1958024e3d
bug fixes, warning removal, perf. improvements
...
git-svn-id: svn://10.0.0.236/trunk@39702 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 17:31:38 +00:00
nisheeth%netscape.com
b9c9cc95a1
Do not include nsXMLTokenizer.h any more.
...
git-svn-id: svn://10.0.0.236/trunk@35603 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:31:55 +00:00
nisheeth%netscape.com
bf550f5348
We no longer need to check an environment variable before instantiating the expat tokenizer. The next step is to remove the XML tokenizer from the build system.
...
git-svn-id: svn://10.0.0.236/trunk@35597 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:11:48 +00:00
nisheeth%netscape.com
1e9a7adaef
The "Using expat for parsing XML message" is getting annoying. Only print it out for my debug build...
...
git-svn-id: svn://10.0.0.236/trunk@33678 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 00:30:23 +00:00
nisheeth%netscape.com
45ad1c7cb1
Fix for bug 6518. The XML DTD now always gets used when the content type is text/xml.
...
git-svn-id: svn://10.0.0.236/trunk@33551 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 19:09:28 +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
3ffa9ea51f
small performance enhancement -- less searching
...
git-svn-id: svn://10.0.0.236/trunk@33114 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-28 07:14:08 +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
nisheeth%netscape.com
3af39c3e8d
Correcting logic for enabling expat by default on the Mac. Approved by chofmann.
...
git-svn-id: svn://10.0.0.236/trunk@26856 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-09 02:17:00 +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