154 Commits

Author SHA1 Message Date
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
peterv%propagandism.org
11636d178a Merging patch by bzbarsky (from mozilla/htmlparser).
Don't strip out whitespace inside <dl> and <fieldset> tags.  Bug 238989 and bug
48376, r=choess, sr=peterv, a=brendan and asa respectively.


git-svn-id: svn://10.0.0.236/trunk@155377 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-23 12:29:54 +00:00
bryner%brianryner.com
23af8f3c42 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146618 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 22:24:21 +00:00
dbaron%dbaron.org
bb5ffac79b P should not be allowed to contain TABLE in standards mode. Patch by Mats Palmgren <mats.palmgren@bredband.net>. r=harishd sr=dbaron b=91927
git-svn-id: svn://10.0.0.236/trunk@143569 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 04:24:25 +00:00
dbaron%dbaron.org
bbaafe049d Make tag lists more maintainable by using sizeof to determine the array length. b=208846 r=harishd sr=jst
git-svn-id: svn://10.0.0.236/trunk@143538 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 22:12:28 +00:00
alecf%netscape.com
a06219c70d fix for bug 200330 - const the heck out of htmlparser!
sr=sfraser, r=jag


git-svn-id: svn://10.0.0.236/trunk@140605 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 22:59:51 +00:00
dougt%netscape.com
fed2927b2c 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.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
jkeiser%netscape.com
a18add6468 Make /applet close things inside applet tag (bug 129888), patch by adu@sparc.spb.su, r=harishd@netscape.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@135376 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 01:28:16 +00:00
harishd%netscape.com
f03d0cf199 Backing out fix for bug 149887 because of bug 184029. a=asa
git-svn-id: svn://10.0.0.236/trunk@134995 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-09 19:30:10 +00:00
harishd%netscape.com
852bb4c5cf Prevent content inside IFRAME from evaluating ( specifically SCRIPT ). b=149887, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@134728 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 22:31:38 +00:00
harishd%netscape.com
2a2e596447 bug 167493 - Backing out the patch based on the bug report
git-svn-id: svn://10.0.0.236/trunk@133792 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 00:38:53 +00:00
bzbarsky%mit.edu
02536b8319 DD should be allowed to contain DL. Bug 179071 and company, r=harishd, sr=heikki
git-svn-id: svn://10.0.0.236/trunk@133773 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 21:55:36 +00:00
rjesup%wgate.com
ef4232374c Bug 167493: userdefined tags should be allowed in <head>. r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@129403 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-12 20:04:43 +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
harishd%netscape.com
cba309a0c0 Make marquee tag a block level element. b=154173, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124152 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 01:49:38 +00:00
pete.zha%sun.com
5894b69ba2 bug 143168:remove ilayer layer tag from mozilla code
r=harishd, sr=jst
Check in for Jerry Tan(jerry.tan@sun.com)'s fix


git-svn-id: svn://10.0.0.236/trunk@121590 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 03:08:15 +00:00
jkeiser%netscape.com
4fd4a3d9c6 Treat NOLAYER like any undeclared tag (from Antonio Xu). Bug 61443, r=harishd@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@121143 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-09 02:33:34 +00:00
harishd%netscape.com
463de5eab2 106746 - Do not allow DD to contain DT and vice versa.
103095 - Ignore forward slash, in short hand tags, in html.
96861 - Ignore nested FORMS.
94269 - Do not allow P to contain FORM.
84592 - Ignore body after FRAMESET.

r=heikki, sr=jst


git-svn-id: svn://10.0.0.236/trunk@110029 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 21:33:12 +00:00
harishd%netscape.com
1bfa4fee99 106746 - DD/DT should not contain each other. r=heikki, sr=attinasi.
99388 - Avoid PR_GetEnv(). sr=attinasi.


git-svn-id: svn://10.0.0.236/trunk@107367 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:48:11 +00:00
harishd%netscape.com
eeeb1c2290 97769 - Replace nsITagStack with a simple nsVoidArray. Also, nuked nsITagStack since it is not of a big help.r=heikki, sr=jst.
99282  - Make sure only HEAD attributes get added to the attribute list in ::OpenHead(). r=heikki, sr=jst.
100466 - Stop DT from containing DL.r=heikki,sr=jst.
102370 - DT should not close DD and vice versa.r=heikki,sr=jst.
100397 - In order for residual style to kick in...disable the check for wellformedness in quirks mode.r=alexandru,sr=attinasi.
102376 - Release nsIRequest in nsParser::DidBuildModel() since nsIRequest is not required past DidBuildModel.r=heikki,sr=darin.


git-svn-id: svn://10.0.0.236/trunk@105792 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:48:18 +00:00
dbaron%fas.harvard.edu
1382ac90eb Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst
git-svn-id: svn://10.0.0.236/trunk@105468 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 05:31:36 +00:00
gerv%gerv.net
cf694b8116 License changes, take 2. Bug 98089. mozilla/include/, /mozilla/htmlparser/, /mozilla/intl/ (part 1).
git-svn-id: svn://10.0.0.236/trunk@103776 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 00:40:45 +00:00
harishd%netscape.com
cecf1d33ee 98187 - Make sure that the end tag, inline element, does not close tags in the root tag list. r=heikki,sr-vidur
git-svn-id: svn://10.0.0.236/trunk@103145 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 00:01:42 +00:00
harishd%netscape.com
8badc43252 98645 - Added SELECT to the set of tags that cannot be crossed over when an end tag ( block-level ) tries to close it's matching open tag on the stack. r=heikki, sr=vidur
git-svn-id: svn://10.0.0.236/trunk@102668 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 21:29:27 +00:00
harishd%netscape.com
f4d6d67500 96031 - Made LI's parent model to be flow entity. This would allow inline elements, such as I,B,FONT, etc., to contain LI such that bullets / numbers would also inherit the parent properties.
93574 -  nsLoggingSink and nsHTMLNullSink  should not be a part of the optimized build. Wrapped 'em under MOZ_DEBUG flag.
r=heikki, sr=vidur, a=asa.


git-svn-id: svn://10.0.0.236/trunk@102098 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:22:16 +00:00
harishd%netscape.com
b4cb458835 56245 - Misplaced /FONT was closing out TABLE. I've added logic such that if a residual style tag ( inline element ) cannot contain a tag ( block element ) then it
cannot close it either. Which implies that the end tag is misplaced. Also, made userdefined tags to act as inline elements.
r=heikki,sr=vidur,a=tor.


git-svn-id: svn://10.0.0.236/trunk@101661 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 23:43:43 +00:00
harishd%netscape.com
ea30cb8aec 93365 - Allow FONT to contain TABLE so that we can control what properties can and cannot propagate inside TABLE in layout. r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@101256 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 01:20:47 +00:00
harishd%netscape.com
065f184032 83119 - Added support for visibility in GetComputedStyle(). r=heikki,sr=jst.
84000 - Preserve NOFRAMES content - patch submitted by scoda@alias.it. r=me, sr=jst.
65467 - DT is an inline element. r=heikki, sr=jst.
88992 - OBJECT should be able to close unclosed block level elements within it. r=heikki, sr=vidur
84491 - IFRAME should be treated similar to NOFRAMES. r=pollmann, sr=vidur
92530 - FORM should behave as a container if the parent is TD or TH. r=heikki,sr=vidur
88243 - For percentage attribute value do not assume that '%' will always be the last character. r=heikki,sr=vidur.


git-svn-id: svn://10.0.0.236/trunk@100508 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 19:05:21 +00:00
harishd%netscape.com
51d81a9901 82500 - Make sure that DidBuildModel gets called only once per document.
79492 - In collecting skipped content make sure that entity-like-markup is not mistaken for an entity.
80009 - PRE should be treated as a block-level element - per spec.
82498 - Do not process script content in a frameset document.
82544 - Beginning/ending quotes in attribute values are now removed by the parser.
77145 - Fix off-by-one error.

r=heikki
sr=vidur
a=asa


git-svn-id: svn://10.0.0.236/trunk@97352 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-18 21:18:37 +00:00
harishd%netscape.com
8e7bf84767 75641 - Fixing MLK caused by unclosed FONT tags ( penguin.html )
r=heikki sr=waterson
77352 - Making sure that the heading tags' size takes precedence over
residual style tags' size info.
r=pollmann sr=attinasi
57248 - Moved attribute entity parsing to the parser land.
r=heikki sr=jst.


git-svn-id: svn://10.0.0.236/trunk@95062 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 22:32:26 +00:00
harishd%netscape.com
79bb25c122 77746 - Remove style from the style stack on encountering the appropritate end tag.
78202 - Added text-decoration property for GetComputedStyle.
26347 - Anchor ( special element ) should be able to close phrasel elements
78140 - Putting back list-style-image support for getComputedStyle that got removed accidently.

r=heikki
sr=jst


git-svn-id: svn://10.0.0.236/trunk@94319 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-09 03:29:09 +00:00
harishd%netscape.com
d2199013d8 69455 - enable noframes content when frames are disabled
r=heikki,sr=waterson,a=choffmann


git-svn-id: svn://10.0.0.236/trunk@92885 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-21 22:22:15 +00:00
harishd%netscape.com
b41e36791e 69331 - <?XML..> does not require BODY!!
66985 - Do not open BODY for INPUT type=hidden. For compatibility
72639 - Discard nested FORMS
2749  - Enable Strict comment parsing.

Replace PRBools with bit operation.
nsScanner Append() should return nsresult not PRBool.

r=heikki
sr=jst


git-svn-id: svn://10.0.0.236/trunk@90964 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-31 22:44:05 +00:00
harishd%netscape.com
9a1300e224 69160 - Parser stack & sink stack should be 1:1 even when handling nested MAPs.
3248  - Added Support for http headers ( link,content-base,default-style ) in the sink.
41426 - Making sure that XML like syntax ( <tag/> ) does not produce an extra end tag ( <tag></tag> ) in view-source.
62803 - Stop processing NOFRAME content ( will have to add support to process the content once we have to ability to turn off frames).

r=heikki,sr=vidur


git-svn-id: svn://10.0.0.236/trunk@88427 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 00:37:04 +00:00
heikki%netscape.com
a4f8173ec8 Bug 44564. Problems with internal subset, especially with view source XML. Also fixed CDATA section problems. Some cleanups. r=harishd, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@86136 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-03 01:13:55 +00:00
harishd%netscape.com
4541137502 61630 - propagate onstop request.
48256 - Verify hierarchy requested by a child tag.
43678 - Make TABLE a legal child of P.
58942 - MAP is not a legal child of TR!
57999 - When the parser is enabled make sure to pass correct information to ResumeParse().
59669 - Remove a warning.

r=heikki
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@85991 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-01 21:03:48 +00:00
harishd%netscape.com
eedd41dfb3 64622 - Make sure that IsResidualStyleTag() returns the correct value. That is, return TRUE for tags that fall under residual style category.
r=jst
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@84807 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-11 21:31:03 +00:00
rickg%netscape.com
c98cf928ae various bug fixes and landed blizzard patch to remove iostream from parser. r=harish, attinasi, kmcclusk; sr=buster
git-svn-id: svn://10.0.0.236/trunk@84554 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 03:37:15 +00:00
harishd%netscape.com
446727274f 56070 - Rewrote the handling of misplaced content inside TABLE to also be effective when document
is provided in multipel buffers.
62954 - DD is not a legal child of SELECT.

r=heikki
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@84384 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 22:15:06 +00:00
vidur%netscape.com
3e62b3f9f3 Changes to parser to allow less copying. Use of the new nsSliding[Sub]String classes so that tokens can hold substrings that keep references into the scanner buffer. Cleaned up token interface and general string usage. r=harishd,heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@83553 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:58:14 +00:00
rickg%netscape.com
fdc899aa10 RTM+Limbo bugs: 55980, 57378. r=harishd, sr=buster, a=pdt.
git-svn-id: svn://10.0.0.236/trunk@81972 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-29 01:28:45 +00:00
rickg%netscape.com
8d22dc81e8 fixed rtm++ bugs: 56665, 57173. r=attinasi, harishd; sr=buster.
git-svn-id: svn://10.0.0.236/trunk@81439 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 06:38:48 +00:00
harishd%netscape.com
88aa869a01 56501 - Dealing with NOSCRIPT contents
r=jst
sr=scc, vidur


git-svn-id: svn://10.0.0.236/trunk@81234 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-15 17:30:08 +00:00
leaf%mozilla.org
8cb2416476 backing out backout. rickg and buster found the one line problem in nsElementTable.cpp, fixed on n6 branch, merging to trunk.
git-svn-id: svn://10.0.0.236/trunk@81036 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 18:46:55 +00:00
leaf%mozilla.org
2f29f2439c backing out rickg's htmlparser changes (backing out fixes 56265 for two
independent developers).


git-svn-id: svn://10.0.0.236/trunk@81034 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 18:22:15 +00:00
rickg%netscape.com
2bad60b783 fixed RTM++ compatibility bugs: 53011, 54117, 54651, 54834, 54840, 55095. sr=buster, r=buster, attinasi, harish, sfraser for various portions.
git-svn-id: svn://10.0.0.236/trunk@80977 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:42:00 +00:00
harishd%netscape.com
664ab05c31 53489 - FMR fix ( r=jst, a=vidur ).
54448 - Allow param to be a kid of BODY for compatibility ( r=jst, a=vidur ).
53935 - Failed to reinitialize a variable "theIndex" that provoked a crash ( r=jst, a=buster)
53695 - Keep a reference to the first misplaced token for later use ( r=jst, a=buster ).


git-svn-id: svn://10.0.0.236/trunk@80464 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 20:10:28 +00:00
rickg%netscape.com
4621c994de fixed nsbeta3+PDT[n] bugs: 48351, 49278, 50070, 52478. Partial fix (WIP) for 49678 and 52725. R=attinasi, buster, syd. A=buster
git-svn-id: svn://10.0.0.236/trunk@79696 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-21 02:58:12 +00:00