359 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
e59c2701d9 Make forward-compatible the DOCTYPE handling for determining whether to be in quirks mode or strict mode: properly parse the DOCTYPE declaration and use a list of known public identifiers that should trigger quirks. Remove some remnants of modes that no longer exist. b=55264 r=harishd sr=vidur
git-svn-id: svn://10.0.0.236/trunk@102591 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 18:37:19 +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
9b350e3b5d 94208 - When removing styles off the style stack ( residual style ) make sure that
the correct ones are getting removed. r=heikki, sr=jst


git-svn-id: svn://10.0.0.236/trunk@100722 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 02:08:50 +00:00
harishd%netscape.com
50df06b8df Oops my previous checkin has incorrect bug # and sr=. Backing out my preivous change to update the comments
git-svn-id: svn://10.0.0.236/trunk@100720 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 02:02:01 +00:00
harishd%netscape.com
3355a26300 94028 - Make sure that the correct style is removed off the style stack - residual style handling. r=heikki, sr=vidur
git-svn-id: svn://10.0.0.236/trunk@100714 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-10 01:44:30 +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
36086848b7 91320 - Removed unused files from htmlparser module and created a public directory.
r= heikki
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@100322 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-03 21:15:15 +00:00
jaggernaut%netscape.com
2b3b3b2586 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
git-svn-id: svn://10.0.0.236/trunk@99906 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 07:54:28 +00:00
jaggernaut%netscape.com
51b17b5bf0 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)


git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
jaggernaut%netscape.com
179eedd115 Bug 78458: ``Remove our broken text/rtf support'', patch by Boris Zbarsky <bzbarsky@mit.edu>, r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@97928 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-26 05:22:23 +00:00
kmcclusk%netscape.com
1823eaba29 Added code to interrupt the parser's processing of tokens if a threshold is exceeded to improve interactivity during long page loads. Turned OFF by default. Can be enabled through a pref. bug 76722 r=harishd@netscape.com,rickg@netscape.com sr=vidur@netscape.com,attinasi@netscape.com a=chofmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@97651 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-21 02:06:23 +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
timeless%mac.com
bb6fa05909 Bugzilla Bug 77080 Show application/x-javascript in browser window instead of trying to download
fix by bzbarsky@mit.edu, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@93852 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-03 22:28:44 +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
waterson%netscape.com
b3ab5ab02e Bug 74728, take three. Properly handle stack-based tokens; specifically, require that only arena-allocated tokens may have attribute tokens. r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@91933 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 03:05:22 +00:00
valeski%netscape.com
ff8619beb3 backing out changes to fix 74728 as they are causing assertion death spirals in todays builds.
git-svn-id: svn://10.0.0.236/trunk@91471 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 17:53:18 +00:00
waterson%netscape.com
17ec076943 Bug 74728, redux. Fix without leaking tokens: make sure that nsCParserNode always has an nsTokenAllocator object. r=harishd, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@91383 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 00:27:11 +00:00
waterson%netscape.com
1ef6e620b4 Bug 68213. Require users of nsFixedSizeAllocator to specify object size at Free() time to avoid 8 byte overhead per allocation. r=harishd, brendan, shaver, hyatt; sr=scc
git-svn-id: svn://10.0.0.236/trunk@91251 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:00:08 +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
disttsc%bart.nl
f69c0e7cd8 bug 73339: Remove NS_ConvertToString (just another name for NS_ConvertASCIItoUCS2) from the tree. r=jst, sr=scc
git-svn-id: svn://10.0.0.236/trunk@90514 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 11:17:17 +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
harishd%netscape.com
6cb66fa5cb 63423 - Unblock parser before evaluating external js content.
63661 - Do not create an end token automatically if the tag did not contain '>'
33051 - Handle residual style before closing a tag.
58992 - Leaf content should go thro' the normal HandleToken path.
61462 - Release parser bundle only when the parser is about to shutdown

r=jst
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@86373 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 23:35:29 +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
7a086d6265 Made parser nodes arena allocated. Also, fixed a few potential leaks.
Note: Parser nodes could be heap allocated by enabling HEAP_ALLOCATED_NODES flag.
r=jst
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@85501 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 19:37:23 +00:00
rickg%netscape.com
bedc6b6b8a Inadvertently removed a IF_RELEASE(); r=waterson
git-svn-id: svn://10.0.0.236/trunk@84556 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 04:44:39 +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
harishd%netscape.com
73f54d3808 59189 - Make sure that SanitizeKey() is accessed only by the attribute token.
r=jar
sr=scc


git-svn-id: svn://10.0.0.236/trunk@82333 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-06 06:03:34 +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
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +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
rickg%netscape.com
74d9db565a fix RTM++56085 crasher; r=attinasi, sr=buster
git-svn-id: svn://10.0.0.236/trunk@81095 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:16:56 +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
832bd11159 fix potential leak from checkin for bug 48351. r=harishd, a=syd
git-svn-id: svn://10.0.0.236/trunk@79705 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-21 04:00:34 +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
harishd%netscape.com
1bb3ea3774 42429 - Enabling code that I'd to back out due to bug 52443.
Looks like the TABLE code is ready to face the change.

r=rickg
a=jst


git-svn-id: svn://10.0.0.236/trunk@79549 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 22:13:53 +00:00
rickg%netscape.com
c80e00b312 fixed bug 40487 and 26347; r=attinasi/harishd
git-svn-id: svn://10.0.0.236/trunk@79226 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 23:31:07 +00:00
harishd%netscape.com
b4de04b36e 52361 - parser shouldn't generate synthetic doctype because
it affects SCRIPTs

r=jst


git-svn-id: svn://10.0.0.236/trunk@79147 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 19:02:13 +00:00
harishd%netscape.com
d4f00ae502 52443 - smoketest blocker
Backing out my change, in the parser,that allowed newlines/whitespace
inside TABLE,TR,TBODY,TFOOT,THEAD. Will reenable this
change once the TABLE code is ready to deal with newlines
/whitespace inside the above mentioned elements.

Btw, this file was untouched by rayw's carpool.

r=vidur
a=granrose


git-svn-id: svn://10.0.0.236/trunk@79137 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 16:59:56 +00:00
rickg%netscape.com
c433e250f9 fixed nsbeta3+ crash (bug# unavailable 'cause bugzilla is down) and removed FMM. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@79094 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 07:28:44 +00:00
harishd%netscape.com
f513e653c1 42429 - Preserve newline/whitespace inside TABLE,TR,TBODY,THEAD,TFOOT
50710 - Stop after popping a style stack otherwise it might cause a MLK
r=rickg


git-svn-id: svn://10.0.0.236/trunk@78903 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 21:17:47 +00:00