56 Commits

Author SHA1 Message Date
bratell%lysator.liu.se
d8c86a7ceb Bug 165893 - use cached nsParserService pointer instead of looking up the service everywhere. r=jst, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@134326 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-22 12:20:05 +00:00
rbs%maths.uq.edu.au
7b0bce519f .innerHTML wasn't recovering   and this was causing consumers such as View Selection Source to lose it, b=165686, r=jst, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@134151 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-20 01:47:06 +00:00
akkana%netscape.com
3fa55ef291 145196: prevent creation of extra blank lines. Fix from burpmaster@truffula.net, r=akkana, sr=jag, a=rjesup
git-svn-id: svn://10.0.0.236/trunk@131984 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-14 22:07:48 +00:00
heikki%netscape.com
fbe40219c9 Bug 63558, we now store XML declaration in the document and can serialize it. There is fix for 158617 as well, newlines behave properly around doctype. r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@127185 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-13 18:41:16 +00:00
akkana%netscape.com
f9a0b8ae70 126259: don't force a linebreak after img tags. Patch from burpmaster@truffula.net, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124051 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 00:04:53 +00:00
peterv%netscape.com
aab00646c0 Fix for bug 88761 (html code for selected and noshade (and other minimizable attributes) not w3c conformant). r=heikki, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@122219 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 12:34:48 +00:00
jst%netscape.com
7b7411c3ef Fixing bug 134278. Die kNameSpaceID_HTML, die! r=sicking@bigfoot.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@121894 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 22:47:02 +00:00
akkana%netscape.com
a199243cff 46227: eliminate extra spaces inserted switching between normal and source modes of composer. Patch is from burpmaster@truffula.net, r=akk, sr=jst
git-svn-id: svn://10.0.0.236/trunk@121580 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 00:32:40 +00:00
dougt%netscape.com
d6cc711878 Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 18:55:21 +00:00
alecf%netscape.com
61312b4eeb fix bug 139633 - as a part of freezing nsAString, move Left/Right/Mid back into nsString, and fix consumers to start using Substring()
r=jag, sr=darin


git-svn-id: svn://10.0.0.236/trunk@120220 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-29 20:29:54 +00:00
rbs%maths.uq.edu.au
453cb1ce37 SaveAs leaves private [-|_moz] attributes in the output, b=134298, r=akkana, sr=jst
git-svn-id: svn://10.0.0.236/trunk@118915 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-13 07:47:21 +00:00
akkana%netscape.com
b8493d4a6b 129122: add a new serializer mode (used primarily by mail) in which
<br> tags within <pre> blocks are translated to newlines.
  r=nhotta,ducarroz,tmutreja sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@118645 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-10 21:25:15 +00:00
heikki%netscape.com
d18deb1faa Bug 126669, we need to pass in aHasChildren parameter to the start tag serializing function because the node that is passed in may be a shallow copy, thereby making it impossible to determine if it originally had children, in the method itself. This fixes case where saving XHTML produces non-wellformed output. r=akkana,tmutreja, sr=jst, a=asa,ADT.
git-svn-id: svn://10.0.0.236/trunk@117951 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-02 21:12:51 +00:00
dbaron%fas.harvard.edu
c43a97f1d5 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117353 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 23:54:46 +00:00
badami%netscape.com
a873d62951 Fix waring during compile
bug 62188 sr=jst a=asa patch=ayn2@cornell.edu


git-svn-id: svn://10.0.0.236/trunk@116525 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 05:51:12 +00:00
badami%netscape.com
b2aab151e4 [serializer]Composer breaks lines at inappropriate positions
bug 85184 r=akkana sr=jst a=asa patch=tmutreja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@116469 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 06:14:57 +00:00
badami%netscape.com
9bb0081936 Support start number for lists in plain text output
bug 62188 r=bratell sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@116380 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 08:21:51 +00:00
badami%netscape.com
b21da840a7 Save As generates &apos; in attributes with single quotes
bug=120674 r=adamlock sr=jst a=asa patch=tmureja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@115710 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 10:06:59 +00:00
locka%iol.ie
bc1c25f6fb Treat NOFRAMES content as CDATA during serialisation to prevent entity subsitution. b=122077 r=harishd@netscape.com sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@114972 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 22:50:16 +00:00
badami%netscape.com
a6de6cd010 [serializer]Using blockquote screws up composer's pretty-print.
bug 93276 patch=tmutreja@netscape.com r=akkana sr=jst


git-svn-id: svn://10.0.0.236/trunk@114789 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 10:33:15 +00:00
badami%netscape.com
57672d7802 HTML serializer doesn't use the base uri for generating absolute url's
bug 80081 patch=tmutreja@netscape.com r=akkana sr=jst


git-svn-id: svn://10.0.0.236/trunk@114788 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 10:30:27 +00:00
badami%netscape.com
d02969f676 Composer won't break long tags
bug 103207 patch=tmutreja@netscape.com r=akkana sr=jst


git-svn-id: svn://10.0.0.236/trunk@114786 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 10:22:17 +00:00
alecf%netscape.com
4331ed65d3 First part of fix for bug 107575 - remove nsString::FindChar because there is already an nsAString::FindChar, and remove the "ignore case" option in RFindChar
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@113200 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 06:04:29 +00:00
bzbarsky%mit.edu
ad1fb22926 Change users of Length() to IsEmpty() where the code really cares about
the latter in content/.  Bug 100649, r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112623 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:03:19 +00:00
jaggernaut%netscape.com
436d43f211 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 11:58:03 +00:00
peterv%netscape.com
d1911c6d0a Fix for bug 108024 (missing carriage returns when copying PRE tag content to clipboard). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@109213 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 14:19:30 +00:00
gerv%gerv.net
ed9b258739 License changes, take 2. Bug 98089. mozilla/content/.
git-svn-id: svn://10.0.0.236/trunk@103682 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 01:32:19 +00:00
peterv%netscape.com
cddb6a17e5 Fix for bug 98031 (Composer adds space(s) when saving doc with link between parentheses). r=brade, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@102754 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-11 09:32:51 +00:00
bryner%netscape.com
7da361b479 Bug 66835 - fix method hiding warnings by renaming some methods on nsIContent. r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101283 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:14:14 +00:00
hyatt%netscape.com
c49a03b7be Fix for 71106. r=jag, sr=jst
git-svn-id: svn://10.0.0.236/trunk@100428 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-06 21:49:35 +00:00
brade%netscape.com
370f7f2d43 remaining portions of fix for bug #68167 (not mangling javascript: urls in href/src attributes) and Naoki's fix for bug #92271; r=nhotta; sr=kin
git-svn-id: svn://10.0.0.236/trunk@100098 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-01 13:39:46 +00:00
jaggernaut%netscape.com
51b17b5bf0 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)


git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
dbaron%fas.harvard.edu
88810ef1eb Fix bad getters on nsIDocument and nsIScriptContext to use out params rather than return |AddRef|ed pointers. b=81289 r=jaggernaut sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@97540 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 03:27:48 +00:00
brade%netscape.com
cc246fdeea don't escape characters in JS attributes; bug #68167
git-svn-id: svn://10.0.0.236/trunk@97489 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 23:51:29 +00:00
anthonyd%netscape.com
b9ea338e2f fix for 73605: nsHTMLContentSerializer outputs <textarea> contents as attributes
r=kin@netscape.com
sr=jst@netscape.com
a=dbaron


git-svn-id: svn://10.0.0.236/trunk@97412 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 07:37:15 +00:00
scc%mozilla.org
90f810b66a bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate features of |nsXPIDLC?String| that keep it out of the string hierarchy (i.e., using assigment to rebind ownership, static |Copy| members, and |getter_Shares|), fixing some leaks in the process.
git-svn-id: svn://10.0.0.236/trunk@97289 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-17 05:23:38 +00:00
sspitzer%netscape.com
e4ccc82b00 fix for bug #84261. there are times where we need to insert linefeeds into message bodys
so that saving as draft, sending, and posting messages will not fail.
this will be come less of a problem when #67334 is fixed.
r=ducarroz, sr=sfraser, a=asa


git-svn-id: svn://10.0.0.236/trunk@97235 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 19:52:50 +00:00
ftang%netscape.com
6f7cf56ee3 fix bug 82622 . check in for nhotta@netscape.com. Add # to the escape list. r=cmanske sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@95909 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-25 13:27:42 +00:00
nhotta%netscape.com
3e2ff8518e Changed to avoid escaping '%' in URI, bug 81238, r=cmanske, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@95744 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 00:13:23 +00:00
nhotta%netscape.com
eb5eb7ae16 Changed html serializer to escape URI, bug 74137, r=ftang, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@94539 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 00:27:03 +00:00
brade%netscape.com
4b75d4886b bug #79148; new line after image, map, area; r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@94126 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 14:46:00 +00:00
disttsc%bart.nl
abd8de21e5 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 08:05:05 +00:00
disttsc%bart.nl
d30c2be76b Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc
git-svn-id: svn://10.0.0.236/trunk@88396 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 09:26:57 +00:00
nhotta%netscape.com
2dd996accf Changed to control entity (CER) generation by a document charset, bug 65324, r=jst, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@86864 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-13 01:00:14 +00:00
akkana%netscape.com
c2b0e5c309 56833: fix whitespace problem in html output
git-svn-id: svn://10.0.0.236/trunk@81629 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 00:31:08 +00:00
harishd%netscape.com
213c0b36dc 56501 - Serializer changes in dealing with NOSCRIPT ( checkin for jst )
r=me
sr=scc


git-svn-id: svn://10.0.0.236/trunk@81236 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-15 17:33:11 +00:00
jst%netscape.com
9870b6af65 Fixing rtm++ bug 56212. The new serializers were a bit too eager about what characters to encode as entities, this caused bad things when sending email that contained double quotes and also when writing a message containing quotes in AIM. sr=vidur, r=nisheeth.
git-svn-id: svn://10.0.0.236/trunk@81129 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 11:06:05 +00:00
jst%netscape.com
d547615f19 Rolling in the last of the NOXIF changes from the Netscape 6 branch, code mostly written by jfrancis. Fixes bugs 50742, 55806, 56000 and 55669. sr=kin, scc. r=kandrot, jst.
git-svn-id: svn://10.0.0.236/trunk@80959 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 22:50:14 +00:00
jst%netscape.com
17e33bbc26 Checking in for bug 50742, this change removes the use of XIF in mozilla and replaces the XIF converter with a HTML (and XML) serializer.
Contextual information added to HTML copy and intelligence added to HTML paste in the editor (fixes bugs 47014, 50568 and 46554, and partly (at least) fixes bug 53188).

Code written by vidur, jfrancis, jst, akkana. Tested by jfrancis, akkana, vidur, jst, kin. Reviwed (and super reviewed) by waterson, vidur, kin, jfrancis, jst


git-svn-id: svn://10.0.0.236/trunk@80681 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 10:57:30 +00:00
jst%netscape.com
9e48d5d854 Fixing the content serializers to compile on Windows. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@78759 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 20:55:46 +00:00