Commit Graph
263 Commits
Author SHA1 Message Date
[email protected] 813a231bc5 bug 275651: Fix a potential crash because of a bad use of nsScanner::SetPosition. r=jst sr=dmose 2005-01-04 02:31:53 +00:00
[email protected] 080659ddc9 bug 273085: HTML tags displayed as part of text r=bryner sr=dbaron 2004-12-15 01:23:03 +00:00
[email protected] 354d3944dc bug 273213: The last letter of some tags consumed as CDATA get chopped off if the tag is not closed properly. r+sr=bzbarsky 2004-12-05 19:02:53 +00:00
[email protected] 2afd8bafd0 bug 88952: Remove trailing content. This checkin fixes a whole slew of textarea bugs. r=jst sr=rbs 2004-12-01 04:37:36 +00:00
[email protected] 776cc12348 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. 2004-11-25 07:03:20 +00:00
[email protected] d4ab578468 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. 2004-11-11 03:46:51 +00:00
[email protected] 43b886d646 bug 70282: view-source loses the last tag in a document if the tag is unclosed. r=rbs sr=roc 2004-11-11 03:41:52 +00:00
[email protected] a67d3d9e27 bug 70918: view-source adds > to tags that are missing them. r=bzbarsky sr=dmose 2004-10-17 03:03:46 +00:00
[email protected] 86ae6f03ca Fix handling of XML PIs in view-source. Bug 91240, patch by Blake Kaplan
<[email protected]>, r=rbs, sr=jst
2004-10-09 18:20:38 +00:00
[email protected] 461b13df2f Treat '\'' and '"' identically for purposes of starting attribute names. Fix
some leaks too.  Bug 261503, patch by Blake Kaplan <[email protected]>,
r=bzbarsky, sr=rbs
2004-10-07 23:23:18 +00:00
[email protected] 152bd9289c Bug 43267. Deal with mismatched quotes in attributes. r=bzbarsky,sr=rbs, patch by Blake Kaplan --- thanks\! 2004-09-30 03:02:15 +00:00
[email protected] 9d47987f08 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
<[email protected]>, r=bzbarsky, sr=rbs
2004-09-15 14:06:48 +00:00
[email protected] cad11041c3 Make CTextToken::ConsumeUntil not consume too much text. Bug 258082, patch by
Blake Kaplan <[email protected]>, r=bzbarsky, sr=jst
2004-09-12 01:50:53 +00:00
[email protected] e271f86736 Bug 84430: Unclosed CDATA sections get dropped.
Patch by Blake Kaplan ([email protected]), r/sr=bzbarsky.
2004-09-04 17:21:51 +00:00
[email protected] 69d7594309 Bug 254843 eToken_script is unused
patch by [email protected] r=peterv sr=peterv
2004-08-23 17:57:51 +00:00
[email protected] d9edea9d71 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin 2004-06-17 00:13:25 +00:00
[email protected] 81bb508207 bug 245673 named literal strings should be const
r+sr=darin
2004-06-11 15:05:29 +00:00
[email protected] 1f52af6beb 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 <[email protected]>, r+sr=bzbarsky
2004-05-31 02:59:57 +00:00
[email protected] 8e9d32e179 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
2004-05-02 11:16:26 +00:00
[email protected] b69b8eada1 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. [email protected]
2004-04-23 13:29:02 +00:00
[email protected] 1ed76a83d6 Merging patch by gerv (from mozilla/htmlparser).
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-23 13:24:28 +00:00
[email protected] ec7b60f2c5 Allow newlines to end unquoted attributes again. Bug 235171, r=choess, sr=jst 2004-02-24 23:56:41 +00:00
[email protected] dde9b92676 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
2004-02-20 00:26:16 +00:00
[email protected] 14e471acbc landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt 2004-02-19 02:44:03 +00:00
[email protected] 94a6a94956 fix non-null terminated PRUnichar string constant. Bug 228688, r+sr+a=dbaron 2004-02-18 00:41:04 +00:00
[email protected] 1003d0cf7f Preserve case of end tags in preserve targets (<textarea>, <xmp>, etc.). Bug
64799, r=choess, sr=jst
2004-01-27 04:50:56 +00:00
[email protected] f7e5a78ce0 Save the original tagname when viewing source to prevent case-folding. Bug
63137, r=choess, sr=heikki
2003-11-13 21:55:26 +00:00
[email protected] 21d76eb604 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
2003-10-30 02:34:03 +00:00
[email protected] 0d76494bef 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
2003-06-25 01:29:21 +00:00
[email protected] 91a2a61c68 Fix for bug 206027. [email protected], [email protected], [email protected]. Make cut n paste from Powerpoint into Mozilla work properly. 2003-05-21 03:03:59 +00:00
[email protected] b0d136abf4 fix for bug 200330 - const the heck out of htmlparser!
sr=sfraser, r=jag
2003-04-02 22:59:51 +00:00
[email protected] d575ba72ae 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 CID�s 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.
2003-03-15 01:04:32 +00:00
[email protected] a6bf6c144c #8275 Need routine to perform Unicode composition and decomposition
borrowed code from jpnic and created new interface.
r=nhotta, sr=alecf.
2003-01-17 23:30:01 +00:00
[email protected] da1c857b8c Prevent a hang by consuming entity-look-alike ( &# ) as text. b=188278, r=heikki,sr=jst 2003-01-13 22:05:52 +00:00
[email protected] 71e9f50a14 Handle unclosed and malformed TITLE tag. b=42945, r=heikki, sr=jst 2003-01-03 19:21:20 +00:00
[email protected] e411a897d8 Backing out my changes to see if it fixes the orangeness 2002-12-13 00:28:47 +00:00
[email protected] 5c0c1412e7 Reduce the size of CStartToken. b=179523, r=heikki sr=jst.
Added a couple of testcases to the parser regression test suite
2002-12-12 22:38:40 +00:00
[email protected] b4a66781e3 use prefix ++, not postfix ++. Bug 82615, r=heikki, sr=jst 2002-09-03 22:23:22 +00:00
[email protected] fff3bf6fe2 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
2002-07-25 18:31:10 +00:00
[email protected] f4e27eb322 Preserve comment declaration for textarea and viewsource. b=133044, r=heikki, sr=jst 2002-05-22 23:51:30 +00:00
[email protected] f0b06cafe5 Bug 142788, malformed comment end was not detected in quirks mode which caused the rest of the document to be treated as a comment. r=harishd, sr=jst. 2002-05-18 01:08:50 +00:00
[email protected] 349652d3fe Bug 137628, depending on network speed the contents of comments could appear on a page in strict mode. Treat unclosed comment in strict mode as text. Fix line numbers in case we need to wait for more content before parsing. r=harishd, sr=jst. 2002-05-17 05:38:46 +00:00
[email protected] 409efe63a7 #128181 ncr between 128-159 does not work in html attribute value
Add a function called "AppendNCR" and use this function for all NCR parsing.
r=ftang, sr=jst,
2002-04-10 23:37:58 +00:00
[email protected] 3bae7ffa4a Fix line numbers in html. b=111576, r=heikki, sr=jst, a=asa,chofmann 2002-04-10 22:16:46 +00:00
[email protected] e3ca0042cf Backing out timeless's checkin. This wasn't supposed to happen until we branched 2002-04-09 00:43:00 +00:00
[email protected] a6033e0904 Bug 111576 Incorrect line numbers in HTML files
patch by harishd, r=heikki, sr=jst, a=chofmann
2002-04-08 23:52:12 +00:00
[email protected] e990a4631d Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-24 00:16:18 +00:00
[email protected] f702a06aca Bug 132238, add back support for SGML short comment and other junk even in strict comment parsing. r=harishd, sr=jst, a=asa. 2002-03-23 02:10:38 +00:00
[email protected] 4f524a9601 Bug 132785, regression in strict comment parsing. Although spec does not allow non-whitespace characters between last dash and greater than, there seem to be lots of pages out there that do this. Relax the code that detects comment end so this starts working again. r=harishd, sr=jst, a=asa. 2002-03-23 01:18:52 +00:00
[email protected] bcf71c332c Bug 130045, make marked-section-like constructs close on greater than so that content generated by MS Word and some other tools works as expected. r=harishd, sr=vidur, a=asa. 2002-03-22 22:58:36 +00:00