diff --git a/editor/libeditor/html/nsHTMLEditRules.cpp b/editor/libeditor/html/nsHTMLEditRules.cpp
index fb66ea0a407..7de3170c3bc 100644
--- a/editor/libeditor/html/nsHTMLEditRules.cpp
+++ b/editor/libeditor/html/nsHTMLEditRules.cpp
@@ -3547,6 +3547,10 @@ nsHTMLEditRules::WillCSSIndent(nsISelection *aSelection, PRBool *aCancel, PRBool
{
// here's where we actually figure out what to do
nsCOMPtr curNode = arrayOfNodes[i];
+
+ // Ignore all non-editable nodes. Leave them be.
+ if (!mHTMLEditor->IsEditable(curNode)) continue;
+
PRInt32 offset;
res = nsEditor::GetNodeLocation(curNode, address_of(curParent), &offset);
if (NS_FAILED(res)) return res;