1788 Commits

Author SHA1 Message Date
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
f32d8c9dad bug 76412: Clean up some obvious things in the view source DTD, as well as ripping out obsolete and unused error reporting cruft. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@184433 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-10 22:47:09 +00:00
mrbkap%gmail.com
6259f472aa 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
git-svn-id: svn://10.0.0.236/trunk@184279 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-08 00:05:09 +00:00
mrbkap%gmail.com
572f01e1ca bug 312104: Parse entities in textareas like we used to (allowing values > 255 with no terminating semicolon). r=bzbarsky sr=brendan
git-svn-id: svn://10.0.0.236/trunk@184101 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-03 18:12:38 +00:00
mrbkap%gmail.com
5ca767ca1e bug 314759: Update our flags when we open a frameset and close the head. r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@184063 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 22:51:17 +00:00
mrbkap%gmail.com
7b7b3071c8 bug 313823: Handle illegal forms of meta charset tags better. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@183377 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 01:10:37 +00:00
peterv%propagandism.org
3ae576b70a Backing out to fix orange.
git-svn-id: svn://10.0.0.236/trunk@183189 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 13:48:13 +00:00
peterv%propagandism.org
e86a9bcace Trying once more to check in fix for bug 274777 (Update to Expat 1.95.8). r=bsmedberg, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@183188 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 13:21:14 +00:00
mrbkap%gmail.com
bf40412018 bug 243056: legend tags containing invalid HTML don't cope very well. r=jst sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@183145 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-27 21:51:37 +00:00
mrbkap%gmail.com
54f04df573 bug 314092: <object> prefers to be in the body, not the head. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@183143 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-27 21:46:31 +00:00
cvshook%sicking.cc
1633079f95 Bug 313327: Fix regression caused by my last checkin. Don't put forms on the tag stack to avoid closing them prematurly.
r=mrbkap sr=bz


git-svn-id: svn://10.0.0.236/trunk@182898 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-24 15:00:19 +00:00
cvshook%sicking.cc
f95c92ff95 Bug 311785: Simplify the nsIHTMLContentSink interface
r=mrbkap sr=peterv


git-svn-id: svn://10.0.0.236/trunk@182699 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-21 15:39:06 +00:00
peterv%propagandism.org
ebdcd46bc4 Back out to fix orange.
git-svn-id: svn://10.0.0.236/trunk@182248 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-14 13:11:58 +00:00
peterv%propagandism.org
1f520d2515 Fix for bug 274777 (Update to Expat 1.95.8). r=bsmedberg, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@182246 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-14 12:23:59 +00:00
mrbkap%gmail.com
43cc833dce bug 309307: Make sure to update the parent pointer of entries of style nodes when they get closed. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@181239 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-29 23:45:11 +00:00
mrbkap%gmail.com
15bb2d7dd2 bug 309040: Exclude kHeadMisc in <option> since we need to exclude userdefined tags (and the autoclose code can't cope otherwise). r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@180588 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-19 19:02:59 +00:00
mrbkap%gmail.com
fa0e5ae949 bug 308781: Don't ignore requests from the content sink to block the parser when we're handling head content in the body. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@180442 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-16 22:14:40 +00:00
mrbkap%gmail.com
8981ec9fc2 bug 308592: MAP before BODY causes the body contents to not render. Remove MAP as a valid child of HTML, and fix a bogus check against HEAD being pushed onto mBodyContext. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@180335 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-16 00:01:30 +00:00
mrbkap%gmail.com
8bd2cced86 bug 307821: The contents of framesets get moved into the body. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@179963 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-10 17:30:39 +00:00
mrbkap%gmail.com
43f238aaf7 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
git-svn-id: svn://10.0.0.236/trunk@179933 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-10 00:12:21 +00:00
mrbkap%gmail.com
1f9d7bc6df bug 307593: Remove the unused and very broken CWordTokenizer class. Patch by Hans-Andreas Engel <Hans-A.Engel@unibas.ch>. r=mrbkap sr=jst
git-svn-id: svn://10.0.0.236/trunk@179927 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 21:59:51 +00:00
mrbkap%gmail.com
173c4f8f2e bug 272702: Remove skipped content. This simplifies the code handling <script>, <style> and related tags and makes the nsIHTMLContentSink interface just that much easier to implement. This also allows <object> tags to appear in the head with children. r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@179917 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 18:11:51 +00:00
mrbkap%gmail.com
4045b60295 bug 272702: Remove skipped content. This simplifies the code handling <script>, <style> and related tags and makes the nsIHTMLContentSink interface just that much easier to implement. This also allows <object> tags to appear in the head with children. r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@179916 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 18:03:47 +00:00
peterv%propagandism.org
cfb79fa121 Fix for bug 307363 (Don't add '---^' to XML errors in the JS console). r=bsmedberg, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@179849 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-08 16:43:30 +00:00
mrbkap%gmail.com
9d34cfcfa0 bug 307122: Restore compatibility for where we open userdefined elements when neither a head nor a body has been explicitly opened. r=jst sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@179781 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-07 03:35:58 +00:00
peterv%propagandism.org
ea08ed73c1 Fix for bug 153998 (COtherDTD should go; composer should handle containment checking itself). r=mrbkap, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@179662 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 15:41:41 +00:00
peterv%propagandism.org
92b741449b Fix for bug 153998 (COtherDTD should go; composer should handle containment checking itself). r=mrbkap, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@179660 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 14:18:56 +00:00
bzbarsky%mit.edu
dd92584140 Make sure random parts of external DTDs don't sneak into the DOM. Bug 306353,
r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@179485 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-01 18:59:46 +00:00
bzbarsky%mit.edu
0fc90867a3 Sync up the MIME type list in parser with what nsContentDLF has, and improve
the error handling for cases when a mismatch does happen.  Bug 306502,
r=mrbkap, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@179398 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-31 17:33:54 +00:00
bzbarsky%mit.edu
a8c7d445d5 Make sure that a reflow flush on the document makes the sink start layout if
needed.  Bug 253951, r=mrbkap, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178851 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 20:56:58 +00:00
mrbkap%gmail.com
a97d5d8a28 bug 305448: Fix leak when page load is terminated while we have multiple parser contexts around (e.g., for a script load started from a document.write). r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@178639 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 21:51:00 +00:00
peterv%propagandism.org
ca1924b673 Fix for bug 275564 (Mozilla SVG build 2004122009, 2004121909: wrong 'mismatched tag' message). Patch by bz, r=peterv, sr=jst, a=bsmedberg.
git-svn-id: svn://10.0.0.236/trunk@176608 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-26 13:09:19 +00:00
mrbkap%gmail.com
0a9cec8bcb bug 301416: Don't allow residual styles to open inside <textarea>. r+sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@176380 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-21 02:51:32 +00:00
mrbkap%gmail.com
c949c36b2d bug 299268: Clean up an early return so that alternate tags would be able to automatically open a body if they wanted to. Don't automatically open a body for <iframe> to avoid regressing bug 288991. r+sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@175770 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 18:30:32 +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
dd9835e28e bug 289537: A couple of followup fixes opening <body> for tags automatically. Also stick non-exclusive head children in the head if we haven't seen either <head> or <body> yet. Also make <bgsound> act like it should. r+sr=jst a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@175252 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-28 21:09:48 +00:00
mrbkap%gmail.com
1fb28bddae bug 289537: Automatically open <body> for more tags by using the kRequiresBody special property. r=jst sr=rbs a=asa
git-svn-id: svn://10.0.0.236/trunk@175146 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-25 21:09:28 +00:00
peterv%propagandism.org
4f974157e9 Fix for bug 298391 (Remove some unused stuff from parser code). r=mrbkap, sr=jst, a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@175091 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-24 13:21:59 +00:00
bsmedberg%covad.net
30e781e751 Bug 279814 - report XML parsing errors to the JS console, r=mrbkap sr=shaver a=chofmann
git-svn-id: svn://10.0.0.236/trunk@175033 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-23 01:54:42 +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
f2a332e8d4 bug 296677: Fix nsParser::ParseFragment to not screw up setting <textarea>'s innerHTML. r=jst sr=peterv a=asa
git-svn-id: svn://10.0.0.236/trunk@174716 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 18:59:59 +00:00
peterv%propagandism.org
aac2b47f2a Fix for bug 286300 (Clean up HTML tags enum and related code). r=mrbkap, sr=bz, a=asa.
git-svn-id: svn://10.0.0.236/trunk@174703 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 13:10:58 +00:00
mrbkap%gmail.com
427f731b67 bug 142965: Handling misplaced content with a stray end tag around causes the tag that caused us to handle the misplaced content to lose its attributes. r=jst sr+a=brendan
git-svn-id: svn://10.0.0.236/trunk@174633 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-15 18:20:29 +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
3561d0632c bug 296121: The parser leaks when somebody calls document.open() and doesn't write any data. r+sr=bzbarsky a=shaver
git-svn-id: svn://10.0.0.236/trunk@173997 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 22:37:04 +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
866b6f0775 bug 295519: Set the scanner's mIncremental member so that the tokenizer doesn't throw away content. r+sr=jst a=shaver
git-svn-id: svn://10.0.0.236/trunk@173995 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 22:32:23 +00:00
mrbkap%gmail.com
e95dc9b671 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@173994 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 22:30:43 +00:00
mrbkap%gmail.com
53d12e81d1 bug 294685: Remove unnecessary DEBUG-only counter/named entity code. r=jst sr=dbaron a=shaver
git-svn-id: svn://10.0.0.236/trunk@173993 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 22:23:13 +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