diff --git a/dom/html/nsGenericHTMLElement.cpp b/dom/html/nsGenericHTMLElement.cpp
index e1964fe502404aad4a377ce86045931c64e058c1..232930739e4f3197c7066df4b258418bd0dca6d1 100644
--- a/dom/html/nsGenericHTMLElement.cpp
+++ b/dom/html/nsGenericHTMLElement.cpp
@@ -3060,8 +3060,8 @@ nsGenericHTMLElement::GetInnerText(mozilla::dom::DOMString& aValue,
 {
   if (!GetPrimaryFrame(FlushType::Layout)) {
     nsIPresShell* presShell = nsComputedDOMStyle::GetPresShellForContent(this);
-    // NOTE(emilio): We need to check the presshell is styled in order to ensure
-    // the document is styled.
+    // NOTE(emilio): We need to check the presshell is initialized in order to
+    // ensure the document is styled.
     if (!presShell || !presShell->DidInitialize() ||
         IsOrHasAncestorWithDisplayNone(this, presShell)) {
       GetTextContentInternal(aValue, aError);