476 Commits

Author SHA1 Message Date
mrbkap%gmail.com
6ad3b86982 bug 244569: Open transient styles before dealing with end tags for residual style tags, so that we don't miss a temporarily closed style. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@185704 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-05 17:35:44 +00:00
mrbkap%gmail.com
ae267e11c6 Fixing bustage from bug 317869.
git-svn-id: svn://10.0.0.236/trunk@185345 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 22:33:48 +00:00
mrbkap%gmail.com
163a50253e bug 317869: CNavDTD still needs its own IID. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@185342 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 22:13:10 +00:00
timeless%mozdev.org
8a213cf6db Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185276 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 19:48:04 +00:00
jst%mozilla.jstenback.com
71b10f5695 Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@185235 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-24 00:21:23 +00:00
mrbkap%gmail.com
f08d3b747d bug 316582: Clean up style nitpicks in CNavDTD. rs=jst
git-svn-id: svn://10.0.0.236/trunk@185233 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-24 00:14:25 +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
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
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
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
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
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
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
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
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
1d5ac8765e bug 208869: Setting innerHTML with textarea can isnert an extra newline. This patch makes textarea be treated as a normal container outside CNavDTD (which takes over its first-newline removal duties). r=sicking sr=bzbarksy a=shaver
git-svn-id: svn://10.0.0.236/trunk@173988 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 21:23:23 +00:00
mrbkap%gmail.com
cf7901ce09 bug 295596: <li> was closing styles on the transient style stack for no good reason, causing them to be lost. This special-cases <li> to not do that. r=bzbarsky sr=jst a=shaver
git-svn-id: svn://10.0.0.236/trunk@173984 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 21:14:01 +00:00
mrbkap%gmail.com
720c6e3fc5 bug 38174: Open transient styles before <li> tags so that bullets and list numbers inherit the proper styles when there is a <font> on the RS stack. r=bzbarsky sr=brendan a=asa
git-svn-id: svn://10.0.0.236/trunk@173582 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-19 16:36:39 +00:00
mrbkap%gmail.com
9de188f29f bug 290081: Use the _moz-rs-heading attribute when opening residual style tags that aren't direct descendents of the heading tag open on the tag stack. r=bzbarsky sr=rbs a=asa
git-svn-id: svn://10.0.0.236/trunk@172417 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-19 01:30:04 +00:00
mrbkap%gmail.com
1b26f5ee4a bug 288991: An <iframe /> before a <frameset> causes the <frameset> to be lost. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171782 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 04:41:18 +00:00
mrbkap%gmail.com
ce19ca701d bug 286733: Crash when attempting to handle misplaced content inside misplaced content because mContextTopIndex pointed to a closed index already. r=jst sr=rbs
git-svn-id: svn://10.0.0.236/trunk@171601 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-04 21:20:00 +00:00
mrbkap%gmail.com
2e94664017 bug 280044: Pass a title node to the content sinks so that attributes on title don't get lost. r=sicking sr=peterv
git-svn-id: svn://10.0.0.236/trunk@171044 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-23 07:09:24 +00:00
mrbkap%gmail.com
98ef34f571 bug 285250: Give tags the ability to request to be either in the head OR the body. They follow the same rules that userdefined, whitespace, and newline tags used to follow. r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@170858 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-17 23:28:35 +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
mats.palmgren%bredband.net
10bfc80393 Don't open transient styles and ignore kFontStyle/kPhrase start tags near MAX_REFLOW_DEPTH. b=58917 r=mrbkap sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@167861 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-17 00:10:28 +00:00
mats.palmgren%bredband.net
ec75e483f0 Remove dead code. b=210238 r=mrbkap sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@167829 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-16 17:07:39 +00:00
mrbkap%gmail.com
0bdf148e90 bug 117738: <dl> within <font> nested in <table> is ignored. r=rbs sr=jst
git-svn-id: svn://10.0.0.236/trunk@167654 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-13 03:34:18 +00:00
mrbkap%gmail.com
b04b815dc7 bug 275288: remove obsolete CRC calculations. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@167028 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-25 04:44:02 +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
mrbkap%gmail.com
eef1038dfa bug 269095: crash on malformed html page that caused us to try to handle misplaced content while we were already handling misplaced content. r=jst sr=rbs
git-svn-id: svn://10.0.0.236/trunk@165334 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-13 06:37:43 +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
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
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
bzbarsky%mit.edu
043249f868 Followup to bug 143512, patch by patch by Chris Thomas <cst@andrew.cmu.edu>,
r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@160640 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 23:48:41 +00:00
bzbarsky%mit.edu
fad9e71dc3 Fix assert if an end tag has "attributes". Bug 143512, patch by Chris Thomas
<cst@andrew.cmu.edu>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@160555 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-09 22:09:06 +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
roc+%cs.cmu.edu
bdc7e5f59b Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +00:00
bzbarsky%mit.edu
6a3b796123 Remove bogus data-sniffing code in CanParse() impls, clean up signature, don't
peek a buffer if we're not planning to autodetect the parsemode.  Bug 113201,
r=rbs, sr=jst


git-svn-id: svn://10.0.0.236/trunk@156393 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-13 23:39:06 +00:00
bzbarsky%mit.edu
a7b3731d67 The saga continues. Don't move around <script>, since that breaks pages... Bug
243064, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@156206 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-10 21:04:18 +00:00
bzbarsky%mit.edu
05cbb3e143 When hoisting misplaced content out of a table, bring along the various "legal
open" elements (script, whitespace, comments, etc) that are kids of the
misplaced content.  This prevents the misplaced content from being closed too
early.  Bug 242503, r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@156044 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-06 22:23:10 +00:00
peterv%propagandism.org
512e303238 Merging patch by bz (from mozilla/htmlparser).
Remove the kOmitWS flag, make it possible to "open" whitespace and newline "tags" anywhere in the document. Bug 240139, r=choess, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@155821 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-02 11:12:34 +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
alex.fritze%crocodile-clips.com
937a1cf846 Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).

Not part of default build; code is #ifdef'ed out.

r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes


git-svn-id: svn://10.0.0.236/trunk@152468 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 12:39:26 +00:00