From 4e70e30516d62d2f5f1b0b7070f3b7ce143df6f2 Mon Sep 17 00:00:00 2001 From: "kin%netscape.com" Date: Wed, 5 Sep 2001 18:25:24 +0000 Subject: [PATCH] Fix for bug #97387: WRMB:iframe with frameborder="no" does not work Call ParseFrameborderValue() with value returned from InNavQuirksMode(), instead of hardcoded PR_TRUE. r=karnaze@netscape.com sr=attinasi@netscape.com --- content/html/content/src/nsHTMLIFrameElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/html/content/src/nsHTMLIFrameElement.cpp b/content/html/content/src/nsHTMLIFrameElement.cpp index a3458c0e3a13..7d31bd9cee5a 100644 --- a/content/html/content/src/nsHTMLIFrameElement.cpp +++ b/content/html/content/src/nsHTMLIFrameElement.cpp @@ -226,7 +226,7 @@ nsHTMLIFrameElement::StringToAttribute(nsIAtom* aAttribute, } } else if (aAttribute == nsHTMLAtoms::frameborder) { - if (ParseFrameborderValue(PR_TRUE, aValue, aResult)) { + if (ParseFrameborderValue(!InNavQuirksMode(mDocument), aValue, aResult)) { return NS_CONTENT_ATTR_HAS_VALUE; } }