398 Commits

Author SHA1 Message Date
cata%netscape.com
20be06a0d4 Turning on charset override by default. r=nhotta a=ftang bug #41620.
git-svn-id: svn://10.0.0.236/trunk@72851 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:41:02 +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
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
akkana%netscape.com
0044c43edb 41916: Remove <td> from the list of inline tags; don't include the enclosing
<td> in a selection that happens to fall inside a table cell. r=rickg


git-svn-id: svn://10.0.0.236/trunk@72412 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 21:22:00 +00:00
scc%mozilla.org
fd1efd70c8 fix type equivalence between |PRUnichar| and |jschar| now that |PRUnchar| may be |wchar_t| on select platforms
git-svn-id: svn://10.0.0.236/trunk@72073 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 23:52:31 +00:00
mjudge%netscape.com
7b1d52b5a5 fixing leak from earlier chekin. copied code, dont look at me. r=scc bug=34896
git-svn-id: svn://10.0.0.236/trunk@71871 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-09 04:19:09 +00:00
jst%netscape.com
f3d0104663 Fixing nsbeta2+ bugs 17351 and 33018, doing document.write(...) on a document in a newly opened window wasn't working properly, the written HTML was replaced by the URL given to window.open(), the fix is to cancel ongoing loads for the new window before starting to write to it. r=vidur
git-svn-id: svn://10.0.0.236/trunk@71812 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 22:51:06 +00:00
mjudge%netscape.com
eda43bdbec (accidentaly checked in with no comment before)bug=34896 getting createElementNS implemented for nsHTMLDocument. this should just be implemented in nsDocument with nsXMLDoc inheiriting also. i will do that when m16 is gone. this allows the editor to create its html elements despite being in a xuldocument. r=hyatt a=beppe
git-svn-id: svn://10.0.0.236/trunk@71678 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 01:17:23 +00:00
mjudge%netscape.com
fcac507ec1 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@71677 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 01:14:08 +00:00
jbetak%netscape.com
a4c4317408 18022, bookmark doc charset caching
r=rjc, ftang, a=ftang


git-svn-id: svn://10.0.0.236/trunk@71217 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 01:13:45 +00:00
rusty.lynch%intel.com
74858ca097 Fixed webshell leaks for each textarea/input element for
bug #39796. r=jst a=waterson


git-svn-id: svn://10.0.0.236/trunk@70926 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 20:09:32 +00:00
jst%netscape.com
bdf3919b60 Fixing typo that sneaked in when fixing this mornings mac bustage after fixing bug 36681. r=brade
git-svn-id: svn://10.0.0.236/trunk@70860 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 21:16:06 +00:00
brade%netscape.com
8e4e55a454 fix mac build bustage
git-svn-id: svn://10.0.0.236/trunk@70848 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 15:46:41 +00:00
jst%netscape.com
6bfd494c6d Fixing bug 36681, lastModified date for local files was incorrect. r=dougt@netscape.com, a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@70835 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 14:03:57 +00:00
harishd%netscape.com
bf18c65a23 Forgot to checkin this file - This should have been a part of
my previous checkin.


git-svn-id: svn://10.0.0.236/trunk@70622 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-22 22:16:56 +00:00
jst%netscape.com
5399afa0da Fix content list regression I introduced a few days ago when working on DOM namespace support, document.forms and other arrays on HTML document objects never contained any elements! r=vidur, a=leaf
git-svn-id: svn://10.0.0.236/trunk@70407 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 20:35:19 +00:00
cata%netscape.com
c71947a6d1 Fixing more of the same problem. nsCOMPtr comparisons. Sorry!
git-svn-id: svn://10.0.0.236/trunk@70383 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 07:40:40 +00:00
cata%netscape.com
ad0e6cd338 Charset override implementation.
git-svn-id: svn://10.0.0.236/trunk@70365 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 06:56:34 +00:00
jst%netscape.com
0c35143f92 Fix getElementsByTagName() regression.
git-svn-id: svn://10.0.0.236/trunk@70265 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 03:47:06 +00:00
jst%netscape.com
a4819fdc9d Implementing getElementsByTagNameNS() for XML and HTML documents.
git-svn-id: svn://10.0.0.236/trunk@69931 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 00:55:05 +00:00
mjudge%netscape.com
6a58aacae2 removing comment on code
git-svn-id: svn://10.0.0.236/trunk@69801 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 14:25:52 +00:00
harishd%netscape.com
d9d69f2ded Enabling NOLAYERS by default ( since we don't support LAYER tag ).
r=vidur

Putting webshellservice into parser bundle for use by observer base.

r=nisheeth


git-svn-id: svn://10.0.0.236/trunk@69672 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-14 19:25:06 +00:00
mjudge%netscape.com
dd4523397c changing nsXifconverter to nsIXifConverter
git-svn-id: svn://10.0.0.236/trunk@69548 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 08:11:29 +00:00
pollmann%netscape.com
b84faceff5 Bug 35573: Fix part of a webshell leak, r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@69300 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-12 00:53:38 +00:00
jst%netscape.com
0f0b4d6367 Changing the way content elements store their name information, previously the elements generally stored a name atom and a namespace ID, now they store a pointer to a shared structure containing the name atom, the prefix atom and the namespace ID. This structure is shared between nodes with unique names (ie same name, prefix and ns ID) within a document. Documents now hold a hash table of the names in the document. The changes to mozilla/rdf are not reviewed but they are approved by waterson@netscape.com and the changes to mozilla/layout are reviewed by buster@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@69034 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-10 13:13:39 +00:00
jst%netscape.com
d24292d0d4 Fixing bug 36308, document.close() didn't release the parser so subsequent document.open calls didn't properly clear the document/old parser.
git-svn-id: svn://10.0.0.236/trunk@68471 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-06 00:05:19 +00:00
rickg%netscape.com
7be87c598e fixed DTDMode regression
git-svn-id: svn://10.0.0.236/trunk@68211 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 05:54:04 +00:00
mkaply%us.ibm.com
de7be3a9e5 # 34082
r= troy
OS/2 bring up continues - PR_CALLBACKs for VisualAge


git-svn-id: svn://10.0.0.236/trunk@67947 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 23:07:11 +00:00
nisheeth%netscape.com
8a6a52bef1 1) Added support for loading an XML document "out of band" from script and manipulating it via dom interfaces.
2) Fixed compile errors in XSL glue code that happened after the recent nsString landing by scc.
3) Added a check for a null URI before de-referencing it in nsCodeBasePrincipal.cpp.


git-svn-id: svn://10.0.0.236/trunk@67709 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 06:58:53 +00:00
dbaron%fas.harvard.edu
cce89251da Fixed miscellaneous leaks exposed to tinderbox leak stats by brade%netscape.com's JS checkin (rev 1.150 of navigator.js, 2000-04-28).
git-svn-id: svn://10.0.0.236/trunk@67689 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 00:26:37 +00:00
jst%netscape.com
b1edeeb86a Hooking up document.getSelection() for html documents to return a string so that we're compatible with 4.x.
git-svn-id: svn://10.0.0.236/trunk@67533 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 14:05:45 +00:00
anthonyd%netscape.com
10a34f6e1b drawing selection as tri-state. on-off-disabled. hardcoded disable color to grey right now. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@66600 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:11:41 +00:00
akkana%netscape.com
60d2734d63 19137: <u> wasn't in the list of inline tags.
git-svn-id: svn://10.0.0.236/trunk@66570 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:31:14 +00:00
scc%netscape.com
8a7f53cc88 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66101 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 20:15:37 +00:00
jst%netscape.com
d638ab269b document.write() speedup, fixes (at least partly) #29805.
git-svn-id: svn://10.0.0.236/trunk@65190 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 14:13:46 +00:00
jst%netscape.com
c76b431214 Updating the interfaces Document and HTMLDocument to comply with DOM Level 2, only stubs for new methods for now.
git-svn-id: svn://10.0.0.236/trunk@64942 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-02 17:46:30 +00:00
jst%netscape.com
2b2767bff4 Updating the DOM Node interface to match the DOM Level 2 interface, only stub implemetations so far.
git-svn-id: svn://10.0.0.236/trunk@64881 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 13:31:23 +00:00
mstoltz%netscape.com
e23c3f29bf Fixed bug 30915 using nsAggregatePrincipal. r=norris
git-svn-id: svn://10.0.0.236/trunk@64652 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 00:31:18 +00:00
warren%netscape.com
9fa657f1cd Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread.
git-svn-id: svn://10.0.0.236/trunk@64449 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 03:58:50 +00:00
jst%netscape.com
ccdce1534d Replace internal HTML Doctype API with the DOM DocumentType API, HTML documents now get a DOM DocumentType if the file contains one and the DOM DocumentType is ouput if/when the document is saved. This fixes bug #25020.
git-svn-id: svn://10.0.0.236/trunk@64402 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 23:25:26 +00:00
scc%netscape.com
d88198c611 small changes to clients of string converting APIs
git-svn-id: svn://10.0.0.236/trunk@64167 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-26 10:06:21 +00:00
norris%netscape.com
953def32a1 Fix
32088 Circumventing Same Origin security policy using javascript: URLs
        32040 about: can't be link
Also remove deprecated method
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@64066 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 22:15:37 +00:00
jst%netscape.com
0436606d70 Update DOMImplementation, DocumentType and DOM Error codes to match the current DOM Level 2 recommendation, also make HTML documents have a DocumentType if one is given in the file. r=joki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@63772 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 22:16:14 +00:00
nisheeth%netscape.com
9317eafd78 r=pollmann. Bug 30916. Content IDs are created for HTML elements created in the HTML content sink, XML content sink and dynamically via JS. The content ID counter is maintained by the document.
git-svn-id: svn://10.0.0.236/trunk@63529 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 03:25:16 +00:00
norris%netscape.com
09ff59d528 Fix a number of security bugs. (I can't see the numbers at home because
they have restricted visibility.)
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@63404 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-18 17:48:12 +00:00
jst%netscape.com
96aefc9b5d Landing changes Vidur made while the tree was closed for beta1 work, here's a list of the changes. r=me
[1] Cutting down the size of content. Made nsIJSScriptObject inherit from nsIScriptObjectOwner
[2] Cutting down the size of content. Made nsITextContent inherit from nsIContent.
[3] Cutting down the size of content. Moved implementation of nsIDOMReceiver to nsListenerManager. This is not true aggregation since it isn't transitive, but it's OK for now. It will be necessary for nsListenerManager to have a reference to its content in the future anyway, so the transitivity could be done.

dom/public/nsDOMPropEnums.h,v  - bug 12559
dom/public/nsIJSScriptObject.h,v - [1]
dom/public/html/MANIFEST,v - bug 12559
dom/public/html/Makefile.in,v - bug 12559
dom/public/html/makefile.win,v -  bug 12559
dom/public/html/nsIDOMHTMLInputElement.h,v - bug 17544
dom/public/idl/html/HTMLAnchorElement.idl,v - bug 12559
dom/public/idl/html/HTMLAreaElement.idl,v - bug 12559
dom/public/idl/html/HTMLInputElement.idl,v - bug 17544
dom/src/base/nsGlobalWindow.cpp,v - bug 30700
dom/src/base/nsGlobalWindow.h,v - [1]
dom/src/base/nsLocation.cpp,v - [1]
dom/src/html/nsJSHTMLAnchorElement.cpp,v - bug 12559
dom/src/html/nsJSHTMLAreaElement.cpp,v - bug 12559
dom/src/html/nsJSHTMLInputElement.cpp,v - bug 17544
layout/base/public/nsIDocument.h,v - bug 27953
layout/base/public/nsITextContent.h,v - [2]
layout/base/src/nsCommentNode.cpp,v - [2]
layout/base/src/nsDocument.cpp,v - bug 27953
layout/base/src/nsDocument.h,v - bug 27953
layout/base/src/nsDocumentViewer.cpp,v - bug 27953
layout/base/src/nsGenericDOMDataNode.cpp,v - [3]
layout/base/src/nsGenericDOMDataNode.h,v - [3]
layout/base/src/nsGenericElement.cpp,v - [3]
layout/base/src/nsGenericElement.h,v - [3]
layout/base/src/nsNameSpaceManager.cpp,v - bug 7834
layout/base/src/nsStyleContext.cpp,v - outline property shouldn't reflow
layout/base/src/nsTextNode.cpp,v - [2]
layout/events/src/nsEventListenerManager.cpp,v - [3]
layout/events/src/nsEventListenerManager.h,v - [3]
layout/html/base/src/nsGfxScrollFrame.cpp,v - nsString->nsAutoString
layout/html/content/src/nsAttributeContent.cpp,v - [2]
layout/html/content/src/nsHTMLAnchorElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLAppletElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLAreaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBRElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBaseElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBaseFontElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLBodyElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLButtonElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDelElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDirectoryElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLDivElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLEmbedElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFieldSetElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFontElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFormElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFrameElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLFrameSetElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHRElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHeadElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHeadingElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLHtmlElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLIFrameElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLImageElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLInputElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLInsElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLIsIndexElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLIElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLabelElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLayerElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLegendElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLLinkElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMapElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMenuElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLMetaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLModElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLObjectElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOptGroupElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLOptionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLParagraphElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLParamElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLPreElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLQuoteElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLScriptElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSelectElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSpacerElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLSpanElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLStyleElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableCaptionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableCellElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableColElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableColGroupElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableRowElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTableSectionElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTextAreaElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLTitleElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLUListElement.cpp,v - [1][3]
layout/html/content/src/nsHTMLWBRElement.cpp,v - [1][3]
layout/html/document/src/nsHTMLDocument.cpp,v - bug 27953
layout/html/document/src/nsHTMLDocument.h,v - bug 27953
layout/xml/content/src/nsXMLCDATASection.cpp,v - [1][2]
layout/xml/content/src/nsXMLDocumentType.cpp,v - [1][2]
layout/xml/content/src/nsXMLElement.h,v - [1][2]
layout/xml/content/src/nsXMLEntity.cpp,v - [1][2]
layout/xml/content/src/nsXMLNotation.cpp,v - [1][2]
layout/xml/content/src/nsXMLProcessingInstruction.cpp,v - [1][2]
layout/xul/base/src/nsBoxFrame.cpp,v - nsString->nsAutoString
layout/xul/base/src/nsSliderFrame.cpp,v - nsString->nsAutoString
netwerk/protocol/http/src/nsHTTPRequest.cpp,v - nsString->nsAutoString
rdf/content/src/nsXULDocument.cpp,v - bug 27953
rdf/content/src/nsXULDocument.h,v - bug 27953
rdf/content/src/nsXULElement.h,v - [1]
xpcom/base/IIDS.h,v  - bug 12559


git-svn-id: svn://10.0.0.236/trunk@63290 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 13:27:00 +00:00
akkana%netscape.com
eed43f5587 nsCOMPtr tainting problem -- need to include nsIParserService.h
git-svn-id: svn://10.0.0.236/trunk@63222 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 01:12:11 +00:00
akkana%netscape.com
910ccafcb4 29032, 29239: linebreaks in <pre> and in plaintext mail.
19137: preserve style of copied text.          r=mjudge


git-svn-id: svn://10.0.0.236/trunk@63208 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 00:08:27 +00:00
blizzard%redhat.com
38572a5d11 fix for bug #18186. remove work around in layout code and properly implement nsIFile::GetLastMofificationDate() on unix. r=vidur,jst,dougt a=waterson
git-svn-id: svn://10.0.0.236/trunk@62992 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 03:08:28 +00:00
joki%netscape.com
04b8c32143 Fix bug 25353, check if jsval is a string before converting it to one. a:rickg, r:vidur
git-svn-id: svn://10.0.0.236/trunk@62825 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 03:18:43 +00:00