155 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
607d0f5160 Fix bug 390565. r+sr=mrbkap
git-svn-id: svn://10.0.0.236/trunk@240269 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-03 02:29:49 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
mats.palmgren%bredband.net
e321f60278 Improve the <!DOCTYPE> parsing. b=363883 r=mrbkap sr=jst
git-svn-id: svn://10.0.0.236/trunk@226115 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-08 12:19:32 +00:00
mats.palmgren%bredband.net
6c2b590a5d Improved NS_ERROR_OUT_OF_MEMORY error handling. b=354074 r=mrbkap sr=jst
git-svn-id: svn://10.0.0.236/trunk@214217 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-27 01:49:52 +00:00
mrbkap%gmail.com
61c90940c0 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
git-svn-id: svn://10.0.0.236/trunk@188619 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 22:19:46 +00:00
mrbkap%gmail.com
7e5d317e7e bug 316582: Clean up the style in nsHTMLTokenizer.cpp. This also contains a bit of dead-code elimination in ConsumeAttribute. r=sicking sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@185618 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-02 22:38:19 +00:00
mrbkap%gmail.com
0c0c7675bf Fixing bustage from bug 315927.
git-svn-id: svn://10.0.0.236/trunk@184470 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-11 19:59:01 +00:00
mrbkap%gmail.com
d2ad849da9 bug 315927: Clean up nsHTMLTokenizer to not have so many virtual methods. Also clean up CParserContext::GetTokenizer. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@184466 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-11 19:11:36 +00:00
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
99edda1686 bug 298264: Change (to if-returns) and remove unnecessary NS_ENSURE_SUCCESS()s to reduce debug clutter. r=jst sr+a=brendan
git-svn-id: svn://10.0.0.236/trunk@174926 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-21 04:29:02 +00:00
mrbkap%gmail.com
74b5c71041 bug 296212: If the very last character in a document is an &, it gets lost (in both view-source and regular content). r=jst sr=bzbarsky a=chofmann
git-svn-id: svn://10.0.0.236/trunk@174096 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-02 23:36:43 +00:00
mrbkap%gmail.com
6f39bbf718 bug 287990: Bring back <plaintext> support. This supports it "properly" (i.e., no end tag). r=jst sr=dbaron a=shaver
git-svn-id: svn://10.0.0.236/trunk@173992 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 22:11:30 +00:00
mrbkap%gmail.com
030d071cd2 bug 288460: Make ScanDocStructure() more strict about tags that break the ShouldVerifyHeirarchy check and mark all children of the tag as malformed so that its children don't think they're well formed. r=rbs sr=bzbarsky a=shaver
git-svn-id: svn://10.0.0.236/trunk@173983 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 21:08:53 +00:00
mrbkap%gmail.com
c0b86fcbd8 bug 294984: Make sure to create text and end tokens for tags such as <iframe>. This fixes a crash where CNavDTD assumed an end token was coming, but it wasn't. r+sr=bzbarsky a=chofmann
git-svn-id: svn://10.0.0.236/trunk@173675 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-22 00:57:37 +00:00
timeless%mozdev.org
e59e2b9af7 Bug 160095 NOEMBED tag causes leaks as the skipped content is not consumed.
patch by mrbkap@gmail.com r=rbs sr=brendan


git-svn-id: svn://10.0.0.236/trunk@170846 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-17 19:38:01 +00:00
mrbkap%gmail.com
52bb9291e2 bug 283459: Only flush tokens after <script> to allow for more chances of inlines containing blocks. r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@169894 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-26 17:53:46 +00:00
mrbkap%gmail.com
02f2f80c8e bug 142260: Make doxygen comments in the htmlparser reflect reality. sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@169404 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 18:30:48 +00:00
mrbkap%gmail.com
c5ea63fd54 bug 90664: Make sure we perform RS handling when we can, in cases where tags that cannot nest and normally would be closed out cannot, due to block tags between them. r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@168608 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-01 03:00:38 +00:00
mrbkap%gmail.com
99a0cc844f bug 142771: Fix ScanDocStructure to be more correct in marking tokens as malformed. r=bzbarsky sr=rbs
git-svn-id: svn://10.0.0.236/trunk@168030 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-19 23:42:02 +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
timeless%mozdev.org
e35a7067a0 Bug 276148 warning: unused variable `CStartToken*theStartToken' in nsHTMLTokenizer::ConsumeStartTag
patch by cst@andrew.cmu.edu r=mrbkap sr=peterv


git-svn-id: svn://10.0.0.236/trunk@167078 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-29 00:34:49 +00:00
mrbkap%gmail.com
bdaa5622f1 bug 273324: Hang on unclosed comments in standards mode. r=jst sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@166419 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-07 21:56:39 +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
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
timeless%mozdev.org
a375f72ee0 Bug 226099 [RFE] Highlight "<![CDATA[" and matching "]]>" in View Source
patch by mrbkap@gmail.com r=bz sr=rbs


git-svn-id: svn://10.0.0.236/trunk@163610 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-12 18:33:12 +00:00
bzbarsky%mit.edu
ad59771509 Remove our broken attempt to support <plaintext> (which is very very
deprecated).  Bug 88987, r=jst, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@163474 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-09 16:55:54 +00:00
bzbarsky%mit.edu
d32c2089be Don't set tags empty just because they have bogus attributes. Bug 262346,
patch by Blake Kaplan <mrbkap@gmail.com>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@163040 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 22:05:23 +00:00
bzbarsky%mit.edu
d5bb0ee184 View-source of XML files should allow non-ascii chars in start tags. Bug
204573, patch by Blake Kaplan <mrbkap@rice.edu>, r=bzbarsky, sr=rbs


git-svn-id: svn://10.0.0.236/trunk@162499 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-17 15:10:47 +00:00
bzbarsky%mit.edu
b24a9a7b74 Fix assertion to use tempChar too. Bug 258082 follow-up.
git-svn-id: svn://10.0.0.236/trunk@162152 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-12 04:49:56 +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
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
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
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
jaggernaut%netscape.com
36ab3d76a9 Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144817 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:37:39 +00:00
harishd%netscape.com
6eb39613d1 Preserve tokenizer state between document.writes. b=99467, r=heikki@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@142987 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-28 20:56:21 +00:00
alecf%netscape.com
5ad510ef08 remove unused #include (no reviewer, its just not used)
git-svn-id: svn://10.0.0.236/trunk@140863 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:55:30 +00:00
dbaron%dbaron.org
9b5780673f Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136003 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 20:44:25 +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
harishd%netscape.com
1eb8cce6ae Do not hold parser nodes, that do not contain residual style information, longer than necessary. By recycling the nodes earlier the number of malloc calls and the peak memory usage can be reduced. b=177994, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@134114 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-19 18:29:35 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +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
dbaron%fas.harvard.edu
7c4652cc16 Split strict mode into almost-standards and full-standards mode, where the only quirk in almost standards mode is the quirky inline box model. Remove previous fix for bug 151620. Tweak mode detection to use almost-standards for XHTML Transitional, HTML 4.01 transitional with system ID, and for IBM system DOCTYPE. b=153032 r=karnaze, bzbarsky, harishd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124017 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 21:16:17 +00:00
sicking%bigfoot.com
f33f681c69 Bug 130439: Remove unused function in tokenizer. Patch by choess@stwing.upenn.edu
r=harishd sr=heikki


git-svn-id: svn://10.0.0.236/trunk@120787 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-04 15:41:00 +00:00
harishd%netscape.com
4737cceba4 Fixed a crash my making sure that the CNavDTD and HTMLContentSink stacks are synchronized when handling a FORM. b=133410, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@118812 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-11 23:50:44 +00:00
harishd%netscape.com
a6dd951b3e Fix line numbers in html. b=111576, r=heikki, sr=jst, a=asa,chofmann
git-svn-id: svn://10.0.0.236/trunk@118658 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-10 22:16:46 +00:00
harishd%netscape.com
6b93bed21c Backing out timeless's checkin. This wasn't supposed to happen until we branched
git-svn-id: svn://10.0.0.236/trunk@118508 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-09 00:43:00 +00:00