Commit Graph
293 Commits
Author SHA1 Message Date
Ehsan Akhgari 478ad1a412 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu 0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Henri Sivonen 2fa0fb46af Bug 596182 - Make fragment parsers global. Remove resulting dead code. r=Olli.Pettay, r=bzbarsky. 2011-08-01 10:48:24 +03:00
Blake Kaplan 20dc07c03a Bug 495663 - Count newlines correctly if we have an alternate ending position. r+sr=sicking 2009-06-01 20:44:37 -07:00
Blake Kaplan 8b7aa979a4 Bug 458440 - Turn speculative parsing back on and clean up the code a little. r+sr=jst 2008-11-11 10:52:40 -08:00
e58154c942 Do not treat backspace as whitespace to match IE and Opera. bug 404252, r+sr=jst 2007-12-21 10:57:16 -08:00
c4d7f9353e Bug 388438: Incorrect interpretation of LFCR after opening tag. r=mrbkap, sr=jst. 2007-07-17 14:29:19 -07:00
[email protected] a937be4a3e Count newlines in textareas correctly. bug 331482, r+sr=sicking 2006-04-06 22:30:18 +00:00
[email protected] c23f822874 Don't get confused by multiple right square brackets when parsing CDATA sections. bug 325532, r+sr=jst 2006-02-06 18:54:53 +00:00
[email protected] 97febb99f5 When we don't find a </script> tag, we should put the entire rest of the document into the script element, but not execute the script. This also makes serialization not serialize the end tags for scripts that don't have them (to preserve round tripping). bug 305873, r=sicking sr=jst 2006-01-31 22:19:46 +00:00
[email protected] 46060106b2 bug 320883: Handle split newlines at the end of chunks without duplicating newlines. r=bzbarsky rs=brendan 2006-01-25 02:29:09 +00:00
[email protected] e44ee57687 bug 323736: Handle bogus comments that start with </ as invalid comments, per HTML5 and to have compatibility with other browsers. r+sr=jst 2006-01-19 00:05:21 +00:00
[email protected] 84ecad06d5 bug 316582: Clean up style in parser/htmlparser. r+sr=jst 2006-01-17 17:58:24 +00:00
[email protected] f2241005cc bug 320585: View source can loose a final equals sign in an attribute if the preceeding character was a quote or slash. r+sr=jst 2005-12-19 20:37:08 +00:00
[email protected] 3d673cfb12 bug 320590: Remove unused member variable mLastAttribute, especially as our attempt to set it was causing us to change non-debug-only variables in #ifdef DEBUG code. r+sr=jst 2005-12-19 20:33:30 +00:00
[email protected] 79803d9aa2 Move some basic macros for working with UTF16 from intl to XPCOM; use them in
some places including the HTML parser.  Part of fix for bug 316394; the CSS
parser changes are still coming.  r=smontagu, r=mrbkap on parser changes, sr=dbaron
2005-11-15 18:17:22 +00:00
[email protected] bb6d0607b0 bug 315933: Trailing /s in XML shouldn't be marked in error, since they're generally not. Truely invalid /s will get shown to be so by the real XML parser. r+sr=jst 2005-11-14 21:59:16 +00:00
[email protected] 193b67050e bug 314980: Handle trailing XML-like slashes by not accepting them into the attribute key at all, not by stripping them once they're already there. r=bzbarsky sr=jst 2005-11-08 00:05:09 +00:00
[email protected] e2b1513c8b bug 312104: Parse entities in textareas like we used to (allowing values > 255 with no terminating semicolon). r=bzbarsky sr=brendan 2005-11-03 18:12:38 +00:00
[email protected] d6991c88a5 bug 307797: Fix line counting regressions resulting from the checkin for bug 272702, as well as an old bug where document.write('\n') would cause line numbers in the rest of the HTML to be offset. Also fix a regression where userdefined tags are forced to be in the head (as opposed to appearing in either the head or the body). r+sr=jst 2005-09-10 00:12:21 +00:00
[email protected] 626488b564 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 2005-06-29 02:46:45 +00:00
[email protected] 1c26f990f1 bug 295646: Whitespace at the end of a document is thrown away by the tokenizer. r+sr=bzbarsky a=shaver 2005-06-01 22:34:29 +00:00
[email protected] b3199eff66 bug 292733: Enforce that the the terminator for <![CDATA[ is ]]>, not ]>. This only affects view-source. r=bzbarsky sr+a=brendan 2005-05-03 23:33:42 +00:00
[email protected] 1cdc1752e9 bug 286381: Allow non-<script> CDATA tags to not have their closing > for better compatibility with IE. r=bzbarsky sr=jst 2005-03-23 06:18:06 +00:00
[email protected] a0b7e7471e bug 276637: Always parse comments in PCDATA in strict mode for better compatibilty with IE. Patch by Bastiaan Jacques <[email protected]>. r=mrbkap sr=peterv 2005-03-23 06:14:10 +00:00
[email protected] c97b624cbf bug 280079: Hang when a document's final tag is missing its closing >. r+sr=jst 2005-01-31 20:37:14 +00:00
[email protected] eb81d6529c bug 280387: Fix a potential crash by passing PR_TRUE for the aReverse paramter to nsScanner::SetPosition(). r+sr=bzbarsky 2005-01-31 00:54:53 +00:00
[email protected] 5c42a41e63 bug 278511: Fix assertions on various comments by ensuring that mComment is always bound to some string. r+sr=bzbarsky 2005-01-20 00:12:58 +00:00
[email protected] eeaf683154 bug 274786: We lose a trailing <, </, <! if it is the last text in the document. r+sr=jst 2005-01-13 03:05:12 +00:00
[email protected] 4dcbfd1248 bug 277695: Fix assertion on empty textareas by ensuring that mTextValue.Rebind() is called at least once. r+sr=bzbarsky 2005-01-13 02:56:56 +00:00
[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