diff --git a/dom/src/build/nsDOMFactory.cpp b/dom/src/build/nsDOMFactory.cpp index 8776bd6283c..de67dbb6d42 100644 --- a/dom/src/build/nsDOMFactory.cpp +++ b/dom/src/build/nsDOMFactory.cpp @@ -454,8 +454,12 @@ nsDOMScriptObjectFactory::NewScriptElement(const nsString &aTagName, return NS_NewScriptHTMLOListElement(aContext, aElement, aParent, aReturn); case DOMHTMLTag_object: return NS_NewScriptHTMLObjectElement(aContext, aElement, aParent, aReturn); -// case DOMHTMLTag_embed: -// return NS_NewScriptHTMLEmbedElement(aContext, aElement, aParent, aReturn); + +#ifdef XP_UNIX + case DOMHTMLTag_embed: + return NS_NewScriptHTMLEmbedElement(aContext, aElement, aParent, aReturn); +#endif + case DOMHTMLTag_optgroup: return NS_NewScriptHTMLOptGroupElement(aContext, aElement, aParent, aReturn); case DOMHTMLTag_option: