Bug 10434: legend.form return form legend is in r=buster

Bug 26669: Don't execute script in noframe and noscript tags r=harishd,vidur
This commit is contained in:
pollmann%netscape.com 2000-02-11 01:18:41 +00:00
parent c0b5ea322c
commit 04f744be8e
2 changed files with 6 additions and 4 deletions

View File

@ -787,6 +787,7 @@ MakeContentObject(nsHTMLTag aNodeType,
break;
case eHTMLTag_legend:
rv = NS_NewHTMLLegendElement(aResult, aAtom);
SetForm(*aResult, aForm);
break;
case eHTMLTag_li:
rv = NS_NewHTMLLIElement(aResult, aAtom);
@ -4192,8 +4193,8 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode)
MOZ_TIMER_STOP(mWatch);
// Don't process scripts that aren't JavaScript and don't process
// scripts that are inside iframes
if (isJavaScript && !mNumOpenIFRAMES) {
// scripts that are inside iframes, noframe, or noscript tags.
if (isJavaScript && !mNumOpenIFRAMES && !mInsideNoXXXTag) {
mScriptLanguageVersion = jsVersionString;
// If there is a SRC attribute...

View File

@ -787,6 +787,7 @@ MakeContentObject(nsHTMLTag aNodeType,
break;
case eHTMLTag_legend:
rv = NS_NewHTMLLegendElement(aResult, aAtom);
SetForm(*aResult, aForm);
break;
case eHTMLTag_li:
rv = NS_NewHTMLLIElement(aResult, aAtom);
@ -4192,8 +4193,8 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode)
MOZ_TIMER_STOP(mWatch);
// Don't process scripts that aren't JavaScript and don't process
// scripts that are inside iframes
if (isJavaScript && !mNumOpenIFRAMES) {
// scripts that are inside iframes, noframe, or noscript tags.
if (isJavaScript && !mNumOpenIFRAMES && !mInsideNoXXXTag) {
mScriptLanguageVersion = jsVersionString;
// If there is a SRC attribute...