712 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
6c9757124a Change the way nsDocument stores its children by replacing separate nsVoidArrays for prolog and epilog with a single nsISupportsArray that also holds the root element. Using this change, simplify many of the child handling methods in nsDocument (and fix some bugs in them). Since nsDocument no longer uses prolog and epilog, remove AppendToProlog and AppendToEpilog from nsIDocument. b=47850 r=jst@netscape.com sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@85490 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 14:19:38 +00:00
jst%netscape.com
1e3e1cbc56 Fixing bug 47733. Making document.implementation.createDocument() set up the root element in the document correctly so that it's parent and owner document is the document that it's in. r=heikki@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@85357 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-23 07:42:20 +00:00
vidur%netscape.com
5624d576e9 Fix for bug 63081. We remove carriage returns passed to us by the parser in the copy from the sink buffer to the content model. r=jst
git-svn-id: svn://10.0.0.236/trunk@85317 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-22 23:11:02 +00:00
heikki%netscape.com
d466758782 Bug 45420, createCDATASection should check for input ']]>' and some null pointer checks. Removed a bogus comment. Original patch from Taras Tielkes, needed to modify a little because we are now using nsAReadableStrings. r=jst, a=vidur.
git-svn-id: svn://10.0.0.236/trunk@84394 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-05 00:35:20 +00:00
rods%netscape.com
a6e0d47c5a removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
Bug 61274, r=buster sr=waterson


git-svn-id: svn://10.0.0.236/trunk@84377 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 20:44:42 +00:00
heikki%netscape.com
42e783bf26 Bug 63560, XML content sink was not adding script element contents to the content model. Includes also minor optimizations and fixes 2 compiler warnings. r=harishd, a=vidur.
git-svn-id: svn://10.0.0.236/trunk@84335 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 00:30:11 +00:00
dbaron%fas.harvard.edu
b4de65c19e Clean up easily fixed unnecessary includes and exports of implementation header files in layout. b=63766 r=jst@netscape.com sr=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@84233 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-30 19:22:22 +00:00
jst%netscape.com
7e93050721 Backing out my last change here, this change didn't do what it was supposed to do, not even close.
git-svn-id: svn://10.0.0.236/trunk@83622 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-14 06:16:39 +00:00
jst%netscape.com
dfa08e19a2 Checking in fix for annoying asserts on startup caused by a doctype token problem in the parser that was introduced yesterday, casting char * to PRUnichar * just aint a good idea (although that was only part of the problem). Fix done mostly by heikki@netscape.com, r=heikki, harishd, sr=me.
git-svn-id: svn://10.0.0.236/trunk@83618 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-14 02:30:12 +00:00
vidur%netscape.com
33d6574ffe Change to token and parser node interfaces in conjunction with less copying in the parser. r=harishd,heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@83552 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:58:13 +00:00
heikki%netscape.com
88d1b46226 Bug 51218, problems with DOCTYPE handling. r=harishd, a=vidur.
git-svn-id: svn://10.0.0.236/trunk@83497 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-11 22:21:06 +00:00
jst%netscape.com
b3fc2d5eba Fixing bug 57466. XML documents need to do principal fixup on redirect. sr=vidur, r=mstolts, r=pollmann.
git-svn-id: svn://10.0.0.236/trunk@83426 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-09 02:04:36 +00:00
heikki%netscape.com
a02e205742 Bug 59675, fixing uninitialized variables. r=jst, a=waterson.
git-svn-id: svn://10.0.0.236/trunk@82928 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-27 23:23:28 +00:00
cls%seawood.org
6088dfbf6b Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@82785 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 07:16:06 +00:00
jst%netscape.com
bba246348c Fixing bug 58888. The content sink was incorrectly releasing the stream loader in its OnStreamComplete() method, this caused a crash when mozilla was running in off-line mode since OnStreamComplete() was called without the sink having a string reference to the stream loader so the incorrect release call in the sink caused a crash later on in necko. sr=rpotts, r=gagan,heikki
git-svn-id: svn://10.0.0.236/trunk@82357 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 23:22:44 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
heikki%netscape.com
eda004b171 Bug 57437, copied the implementation from HTML. r=adamlock, a=vidur.
git-svn-id: svn://10.0.0.236/trunk@81633 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 01:03:31 +00:00
mstoltz%netscape.com
9351f77d32 Fixing 56009, exploit allowing XPConnect access. r,a=hyatt, sr=scc
git-svn-id: svn://10.0.0.236/trunk@81158 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 22:59:47 +00:00
mstoltz%netscape.com
6af6562c9e Fixing leak in nsXMLDocument to get the tree reopened. r=mccabe, brendan
git-svn-id: svn://10.0.0.236/trunk@79766 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-21 19:48:11 +00:00
mstoltz%netscape.com
676f6215b3 Fixing 52497, security problem in document.implementation, r=jst a=brendan
git-svn-id: svn://10.0.0.236/trunk@79671 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 23:38:28 +00:00
Peter.VanderBeken%pandora.be
2cabd6fa68 Enabling XSLT hooks in layout in default build. Bug #42228. r=axel@pike.org, a=waterson@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@79394 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-16 20:53:08 +00:00
nisheeth%netscape.com
d029c3bb44 r=jst. Fix for nsbeta3+ bug 49579: Leak of a char * fixed in StartDocumentLoad().
git-svn-id: svn://10.0.0.236/trunk@79090 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 06:43:08 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
jst%netscape.com
da36093404 Fixing nsbeta3+ bug 51562. Don't leak nsXMLProcessingInstructions... r=beard&dbaron
git-svn-id: svn://10.0.0.236/trunk@78823 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 01:51:02 +00:00
ftang%netscape.com
d19e2e0bfe fix bug 50654. r=nhotta take care " in the charset
git-svn-id: svn://10.0.0.236/trunk@78270 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-06 20:41:12 +00:00
Peter.VanderBeken%pandora.be
cbec54eb6e Correct string usage in XSLT hooks. Not part of default build (ifdef'ed). r=nisheeth.
git-svn-id: svn://10.0.0.236/trunk@78100 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-04 05:55:00 +00:00
Peter.VanderBeken%pandora.be
1a6674f227 Fix XSLT hooks (Preparation for bug #42228). r=jst@netscape.com, a=waterson@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@78023 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-02 15:35:19 +00:00
Peter.VanderBeken%pandora.be
cb5360f078 Fix XSLT hooks (Preparation for bug #42228). Remove GetAttributeValueAt (Fixes bug #47454). Clean up code. r=jst@netscape.com, a=waterson@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@78022 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-02 15:34:07 +00:00
nisheeth%netscape.com
a86af47972 r=jst. Fixing refcounting of ID attribute atoms. Additional work to earlier checkin for fixing bug 10292. Also, added support for getElementByID() in XML documents.
git-svn-id: svn://10.0.0.236/trunk@77832 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 02:21:06 +00:00
jst%netscape.com
0b04376254 Fixing nsbeta3+ bug 48213 and most of bug 48161. Finally removing the temporary DOM Level 2 debugging code, cleaning out some unused code and making getAttribute and setAttribute on HTML elemensts case insensitive. r=vidur@netscape.com, waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@77692 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 00:36:31 +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
jst%netscape.com
7e0575bfee DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
scc%mozilla.org
a0a2b1b7fe fixing code that relied on implicit string construction
git-svn-id: svn://10.0.0.236/trunk@76727 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-19 22:23:46 +00:00
ftang%netscape.com
c2db6c347e *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@76599 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 00:47:03 +00:00
heikki%netscape.com
4ab104dc0c Bugs 38399, 40889, 44211. Also fix two compiler warnings (mismatched signed/unsigned). r=jst (bug 44211 r=harishd).
git-svn-id: svn://10.0.0.236/trunk@75076 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 21:48:08 +00:00
cls%seawood.org
7fb57d53ad Removing last vestiges of raptor from unix build. Since some libs were renamed, a 'make distclean' is recommeneded to remove the old copies of those libs. Bug #8228 r=bryner
git-svn-id: svn://10.0.0.236/trunk@73643 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-02 18:44:42 +00:00
cls%seawood.org
91d683a067 Removed obsolete REQUIRES variable from every Makefile.in/makefile.win
git-svn-id: svn://10.0.0.236/trunk@73583 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 08:08:04 +00:00
nisheeth%netscape.com
ab324a8e94 Fix for bug 43019. Does not affect current build. Fixes a unix compile problem for XSL hooks in mozilla.
git-svn-id: svn://10.0.0.236/trunk@73269 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 01:12:44 +00:00
jst%netscape.com
52bb73928e Fixing nsbeta2+ bug 33477, completing (more or less) the DOM Level 2 NamedNodeMap implementation, this includes modifying the XML content sink to properly pass attribute prefixes to the content objects. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73000 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:21:32 +00:00
vidur%netscape.com
756dc76c80 Fix for bug 38349. Implemented nsIDOMNode::CloneNode() and ImportNode() for XML and HTML documents as part of finishing out our DOM1 and DOM2 implementations. Cleanup of DOMImplementation::createDocument. r=jst
git-svn-id: svn://10.0.0.236/trunk@72844 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:56:52 +00:00
vidur%netscape.com
a86b544c90 Fix for bug 9392. document.plugins now aliases to window.navigator.plugins. r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@72709 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:53:26 +00:00
vidur%netscape.com
dc0d9afb5a Fix for bug 15118. XML content sink now processes the DOCTYPE. r=jst,nisheeth
git-svn-id: svn://10.0.0.236/trunk@72471 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-17 01:49:19 +00:00
vidur%netscape.com
42dd385f64 Work for bug 33475 - completion of Document-related DOM Level 2 support. Null-checks for the empty document case. The documentElement can now be replaced. Load() no longer takes extra unused argument. r=jst,nisheeth
git-svn-id: svn://10.0.0.236/trunk@72468 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-17 01:46:58 +00:00
nisheeth%netscape.com
72b21b2508 Checking in patch from Andreas to fix Mozilla's XSL hooks (bug 36038). Does not affect the default mozilla build.
git-svn-id: svn://10.0.0.236/trunk@72459 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 23:29:19 +00:00
Peter.VanderBeken%pandora.be
6b63ee0f89 Reenable creation of HTML elements in XML documents. r=nisheeth, r=kin, a=waterson.
git-svn-id: svn://10.0.0.236/trunk@72315 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 17:48:19 +00:00
dbaron%fas.harvard.edu
4c9e389cd9 Fix bug 38766 (JS errors given wrong for linked scripts in XML documents), nsbeta2+. r=harishd@netscape.com
git-svn-id: svn://10.0.0.236/trunk@72279 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 02:33:22 +00:00
dbaron%fas.harvard.edu
f42beb99b8 Fix bug 38766 (JS errors given wrong for linked scripts in XML documents), nsbeta2+. r=harishd@netscape.com
git-svn-id: svn://10.0.0.236/trunk@72277 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 02:22:09 +00:00
axel%pike.org
b8a7545f4e Code cleanup, XSL->MOZ_XSL, r=nisheeth, a=waterson
git-svn-id: svn://10.0.0.236/trunk@72204 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 07:35:26 +00:00
mjudge%netscape.com
f7944757df fixing leaks! r=scc bug=34896
git-svn-id: svn://10.0.0.236/trunk@71869 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-09 04:16:50 +00:00