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; } }