diff --git a/content/html/content/src/nsHTMLAtoms.cpp b/content/html/content/src/nsHTMLAtoms.cpp
index 8f3f5465f26f..cb74705370f9 100644
--- a/content/html/content/src/nsHTMLAtoms.cpp
+++ b/content/html/content/src/nsHTMLAtoms.cpp
@@ -271,7 +271,7 @@ static nsrefcnt gRefCnt;
void nsHTMLAtoms::AddrefAtoms()
{
if (0 == gRefCnt) {
- mozAnonymousBlock = NS_NewAtom(":MOZ-ANONYMOUS-BLOCK");
+ mozAnonymousBlock = NS_NewAtom(":-MOZ-ANONYMOUS-BLOCK");
_baseHref = NS_NewAtom(NS_HTML_BASE_HREF);
_baseTarget = NS_NewAtom(NS_HTML_BASE_TARGET);
diff --git a/content/shared/src/nsHTMLAtoms.cpp b/content/shared/src/nsHTMLAtoms.cpp
index 8f3f5465f26f..cb74705370f9 100644
--- a/content/shared/src/nsHTMLAtoms.cpp
+++ b/content/shared/src/nsHTMLAtoms.cpp
@@ -271,7 +271,7 @@ static nsrefcnt gRefCnt;
void nsHTMLAtoms::AddrefAtoms()
{
if (0 == gRefCnt) {
- mozAnonymousBlock = NS_NewAtom(":MOZ-ANONYMOUS-BLOCK");
+ mozAnonymousBlock = NS_NewAtom(":-MOZ-ANONYMOUS-BLOCK");
_baseHref = NS_NewAtom(NS_HTML_BASE_HREF);
_baseTarget = NS_NewAtom(NS_HTML_BASE_TARGET);
diff --git a/layout/html/base/src/nsHTMLAtoms.cpp b/layout/html/base/src/nsHTMLAtoms.cpp
index 8f3f5465f26f..cb74705370f9 100644
--- a/layout/html/base/src/nsHTMLAtoms.cpp
+++ b/layout/html/base/src/nsHTMLAtoms.cpp
@@ -271,7 +271,7 @@ static nsrefcnt gRefCnt;
void nsHTMLAtoms::AddrefAtoms()
{
if (0 == gRefCnt) {
- mozAnonymousBlock = NS_NewAtom(":MOZ-ANONYMOUS-BLOCK");
+ mozAnonymousBlock = NS_NewAtom(":-MOZ-ANONYMOUS-BLOCK");
_baseHref = NS_NewAtom(NS_HTML_BASE_HREF);
_baseTarget = NS_NewAtom(NS_HTML_BASE_TARGET);