diff --git a/layout/html/base/src/nsHTMLTagContent.h b/layout/html/base/src/nsHTMLTagContent.h
index 059d51a623ff..c521475006e3 100644
--- a/layout/html/base/src/nsHTMLTagContent.h
+++ b/layout/html/base/src/nsHTMLTagContent.h
@@ -233,12 +233,6 @@ public:
static PRBool TableCaptionAlignParamToString(const nsHTMLValue& aValue,
nsString& aResult);
-protected:
- nsHTMLTagContent();
- nsHTMLTagContent(nsIAtom* aTag);
- virtual ~nsHTMLTagContent();
- void SizeOfWithoutThis(nsISizeOfHandler* aHandler) const;
-
/**
* Helper method used by GetAttribute to map an attribute
* to a string value.
@@ -247,6 +241,20 @@ protected:
nsHTMLValue& aValue,
nsString& aResult) const;
+ /**
+ * Helper method used by SetAttribute to map a string to an
+ * attribute value.
+ */
+ virtual nsContentAttr StringToAttribute(nsIAtom* aAttribute,
+ const nsString& aValue,
+ nsHTMLValue& aResult);
+
+protected:
+ nsHTMLTagContent();
+ nsHTMLTagContent(nsIAtom* aTag);
+ virtual ~nsHTMLTagContent();
+ void SizeOfWithoutThis(nsISizeOfHandler* aHandler) const;
+
virtual nsresult AddScriptEventListener(nsIAtom* aAttribute, nsHTMLValue& aValue, REFNSIID aIID);