mrbkap%gmail.com
052698242f
bug 299036: Fix crash in CNavDTD by moving newline stripping into the tokenizer. This reduces our reliance on the invariants that the tokenizer tries to provide. r+sr=jst a=chofmann
...
git-svn-id: svn://10.0.0.236/trunk@175279 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 02:46:45 +00:00
mrbkap%gmail.com
73565feba2
bug 295646: Whitespace at the end of a document is thrown away by the tokenizer. r+sr=bzbarsky a=shaver
...
git-svn-id: svn://10.0.0.236/trunk@173996 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 22:34:29 +00:00
mrbkap%gmail.com
143d0a488f
bug 292733: Enforce that the the terminator for <![CDATA[ is ]]>, not ]>. This only affects view-source. r=bzbarsky sr+a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@173021 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-03 23:33:42 +00:00
mrbkap%gmail.com
05722dbac0
bug 286381: Allow non-<script> CDATA tags to not have their closing > for better compatibility with IE. r=bzbarsky sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@171042 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-23 06:18:06 +00:00
mrbkap%gmail.com
68251194fa
bug 276637: Always parse comments in PCDATA in strict mode for better compatibilty with IE. Patch by Bastiaan Jacques <baafie@planet.nl>. r=mrbkap sr=peterv
...
git-svn-id: svn://10.0.0.236/trunk@171041 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-23 06:14:10 +00:00
mrbkap%gmail.com
e3941ea003
bug 280079: Hang when a document's final tag is missing its closing >. r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@168574 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 20:37:14 +00:00
mrbkap%gmail.com
c19cfc9484
bug 280387: Fix a potential crash by passing PR_TRUE for the aReverse paramter to nsScanner::SetPosition(). r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@168538 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 00:54:53 +00:00
mrbkap%gmail.com
c58c7fc5d4
bug 278511: Fix assertions on various comments by ensuring that mComment is always bound to some string. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@168032 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-20 00:12:58 +00:00
mrbkap%gmail.com
81de7a518e
bug 274786: We lose a trailing <, </, <! if it is the last text in the document. r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@167652 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-13 03:05:12 +00:00
mrbkap%gmail.com
f61d9db382
bug 277695: Fix assertion on empty textareas by ensuring that mTextValue.Rebind() is called at least once. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@167651 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-13 02:56:56 +00:00
mrbkap%gmail.com
93e65100c3
bug 275651: Fix a potential crash because of a bad use of nsScanner::SetPosition. r=jst sr=dmose
...
git-svn-id: svn://10.0.0.236/trunk@167235 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-04 02:31:53 +00:00
mrbkap%gmail.com
8255135303
bug 273085: HTML tags displayed as part of text r=bryner sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@166732 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-15 01:23:03 +00:00
mrbkap%gmail.com
7b47235ac3
bug 273213: The last letter of some tags consumed as CDATA get chopped off if the tag is not closed properly. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@166272 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-05 19:02:53 +00:00
mrbkap%gmail.com
55015dd49f
bug 88952: Remove trailing content. This checkin fixes a whole slew of textarea bugs. r=jst sr=rbs
...
git-svn-id: svn://10.0.0.236/trunk@166010 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-01 04:37:36 +00:00
bryner%brianryner.com
7a461c49a4
Reduce string copying and allocation in the parser by only copying the scanner buffer when we need to mutate the string. Allow a nsDependentString / nsDependentSubstring to be created without being bound to anything. Move StripChar() onto nsSubstring from nsString. Bug 269853, r=jst, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@165773 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-25 07:03:20 +00:00
bryner%brianryner.com
0da729e8f7
Only allocate and copy a string in CAttributeToken::GetStringValue if the string spans multiple buffers. Otherwise, just wrap it with a nsDependentSubstring. Bug 268932, r=bzbarsky, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@165246 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-11 03:46:51 +00:00
mrbkap%gmail.com
2d1d00b7e3
bug 70282: view-source loses the last tag in a document if the tag is unclosed. r=rbs sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@165245 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-11 03:41:52 +00:00
mrbkap%gmail.com
bdc788666f
bug 70918: view-source adds > to tags that are missing them. r=bzbarsky sr=dmose
...
git-svn-id: svn://10.0.0.236/trunk@163915 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-17 03:03:46 +00:00
bzbarsky%mit.edu
1cb22f67a0
Fix handling of XML PIs in view-source. Bug 91240, patch by Blake Kaplan
...
<mrbkap@gmail.com>, r=rbs, sr=jst
git-svn-id: svn://10.0.0.236/trunk@163481 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-09 18:20:38 +00:00
bzbarsky%mit.edu
53fef655c4
Treat '\'' and '"' identically for purposes of starting attribute names. Fix
...
some leaks too. Bug 261503, patch by Blake Kaplan <mrbkap@gmail.com>,
r=bzbarsky, sr=rbs
git-svn-id: svn://10.0.0.236/trunk@163400 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-07 23:23:18 +00:00
roc+%cs.cmu.edu
d8e4b2e3bf
Bug 43267. Deal with mismatched quotes in attributes. r=bzbarsky,sr=rbs, patch by Blake Kaplan --- thanks\!
...
git-svn-id: svn://10.0.0.236/trunk@162988 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 03:02:15 +00:00
bzbarsky%mit.edu
361655f750
When parsing a <script> with an unterminated comment inside, stop at the first
...
</script> we hit, not the last one. Bug 219504, patch by Blake Kaplan
<mrbkap@rice.edu>, r=bzbarsky, sr=rbs
git-svn-id: svn://10.0.0.236/trunk@162358 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-15 14:06:48 +00:00
bzbarsky%mit.edu
a5e5bcdb06
Make CTextToken::ConsumeUntil not consume too much text. Bug 258082, patch by
...
Blake Kaplan <mrbkap@rice.edu>, r=bzbarsky, sr=jst
git-svn-id: svn://10.0.0.236/trunk@162149 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-12 01:50:53 +00:00
kjh-5727%comcast.net
2d0c57e8db
Bug 84430: Unclosed CDATA sections get dropped.
...
Patch by Blake Kaplan (mrbkap@rice.edu ), r/sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@161761 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 17:21:51 +00:00
timeless%mozdev.org
8bde60ceed
Bug 254843 eToken_script is unused
...
patch by cst@andrew.cmu.edu r=peterv sr=peterv
git-svn-id: svn://10.0.0.236/trunk@161136 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-23 17:57:51 +00:00
roc+%cs.cmu.edu
0b0fa89131
Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
cbiesinger%web.de
39955b6428
bug 245673 named literal strings should be const
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157773 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-11 15:05:29 +00:00
bzbarsky%mit.edu
688b9dafb8
Making view-source not stick whitespace coming between the equals sign and the
...
quote mark in an attribute inside the attr value. Bug 154120, patch by Blake
Kaplan <mrbkap@rice.edu>, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@157145 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-31 02:59:57 +00:00
peterv%propagandism.org
beda106d3b
Merging patch by bz (from mozilla/htmlparser).
...
Change our concept of a "tagname" to include all sorts of random chars like IE does (that is, allow any char that's not in a short list of terminal chars).
Bug 236002, r=choess, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@155822 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-02 11:16:26 +00:00
peterv%propagandism.org
0374f36974
Merging patch by jst (from mozilla/htmlparser).
...
Fixing bug 241328. Eliminating dead code, and making some classes use less memory on some 64-bit platforms. Also doing some general cleaning. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@155384 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-23 13:29:02 +00:00
peterv%propagandism.org
7697906006
Merging patch by gerv (from mozilla/htmlparser).
...
Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155383 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-23 13:24:28 +00:00
bzbarsky%mit.edu
ceb27e0b2d
Allow newlines to end unquoted attributes again. Bug 235171, r=choess, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@153184 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-24 23:56:41 +00:00
bzbarsky%mit.edu
8bdf297ed2
Bug 137315. Further fixes to make the line numbers the HTML tokenizer reports
...
correct. This should be the last of it. r=choess, sr=jst
git-svn-id: svn://10.0.0.236/trunk@152987 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 00:26:16 +00:00
darin%meer.net
55688e6410
landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt
...
git-svn-id: svn://10.0.0.236/trunk@152905 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 02:44:03 +00:00
bryner%brianryner.com
309c615d44
fix non-null terminated PRUnichar string constant. Bug 228688, r+sr+a=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@152864 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-18 00:41:04 +00:00
bzbarsky%mit.edu
62c53f23d5
Preserve case of end tags in preserve targets (<textarea>, <xmp>, etc.). Bug
...
64799, r=choess, sr=jst
git-svn-id: svn://10.0.0.236/trunk@151887 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 04:50:56 +00:00
bzbarsky%mit.edu
163defe9c7
Save the original tagname when viewing source to prevent case-folding. Bug
...
63137, r=choess, sr=heikki
git-svn-id: svn://10.0.0.236/trunk@149266 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 21:55:26 +00:00
bzbarsky%mit.edu
881281f753
Make parsing super-large script/cdata/whatever blocks faster by using
...
size_forward as a lower-bound estimate for actual distance to end of string.
Bug 171124, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@148516 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 02:34:03 +00:00
bzbarsky%mit.edu
e11bc6808c
Fix CDATA tokenization in view-source mode end the CDATA section on "]>", not
...
']' (as it needs to do for normal parsing mode). Bug 209485, r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@144130 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 01:29:21 +00:00
nisheeth%netscape.com
73bcd9dd60
Fix for bug 206027. r=harishd@netscape.com, sr=jst@netscape.com, a=mkaply@us.ibm.com. Make cut n paste from Powerpoint into Mozilla work properly.
...
git-svn-id: svn://10.0.0.236/trunk@142686 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-21 03:03:59 +00:00
alecf%netscape.com
a06219c70d
fix for bug 200330 - const the heck out of htmlparser!
...
sr=sfraser, r=jag
git-svn-id: svn://10.0.0.236/trunk@140605 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 22:59:51 +00:00
dougt%netscape.com
fed2927b2c
Create a new xpcom obsolete library (and component library).
...
Moved nsFileSpec and related classes into this obsolete library.
Moved nsRegistry and related libreg functionality into the obsolete library.
Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.
Combined the following DLLs (source -> dest)
uriloader -> docshell
shistory -> docshell
jsurl -> jsdom
gkview -> gklayout
Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer
Modifed the xpt_link tool so that you can specify a only include cid list that can mask CIDs that you are not interested in.
Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).
Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService
Bug 194240, r/sr = darin, alec.
git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
shanjian%netscape.com
18ebb2c0bc
#8275 Need routine to perform Unicode composition and decomposition
...
borrowed code from jpnic and created new interface.
r=nhotta, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@136548 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 23:30:01 +00:00
harishd%netscape.com
d2e0c6cd0d
Prevent a hang by consuming entity-look-alike ( &# ) as text. b=188278, r=heikki,sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@136261 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-13 22:05:52 +00:00
harishd%netscape.com
21bb532f1a
Handle unclosed and malformed TITLE tag. b=42945, r=heikki, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@135830 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-03 19:21:20 +00:00
harishd%netscape.com
a2a40a39a6
Backing out my changes to see if it fixes the orangeness
...
git-svn-id: svn://10.0.0.236/trunk@135202 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 00:28:47 +00:00
harishd%netscape.com
b38cebbd49
Reduce the size of CStartToken. b=179523, r=heikki sr=jst.
...
Added a couple of testcases to the parser regression test suite
git-svn-id: svn://10.0.0.236/trunk@135185 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-12 22:38:40 +00:00
bzbarsky%mit.edu
4f51e5b41e
use prefix ++, not postfix ++. Bug 82615, r=heikki, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@128743 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 22:23:22 +00:00
alecf%netscape.com
7e8aa74093
fix for bug 157572 - remove nsIAtom references from strings, and thus expicitly #include nsIAtom.h for consumers who are expecting it.
...
r=dmose, sr=jag, a=asa
git-svn-id: svn://10.0.0.236/trunk@125791 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 18:31:10 +00:00
harishd%netscape.com
eedcf9208e
Preserve comment declaration for textarea and viewsource. b=133044, r=heikki, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@122037 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 23:51:30 +00:00