Bug 515142 - Make HTML5 parser never clone nodes. WHATWG spec SVN rev 2947. rs=sicking.

This commit is contained in:
Henri Sivonen
2009-09-21 10:00:10 +03:00
parent d36b845a44
commit 78b7b31988
14 changed files with 92 additions and 23 deletions

View File

@@ -223,6 +223,17 @@ nsHtml5HtmlAttributes::adjustForSvg()
mode = NS_HTML5ATTRIBUTE_NAME_SVG;
}
nsHtml5HtmlAttributes*
nsHtml5HtmlAttributes::cloneAttributes()
{
nsHtml5HtmlAttributes* clone = new nsHtml5HtmlAttributes(0);
for (PRInt32 i = 0; i < length; i++) {
clone->addAttribute(names[i]->cloneAttributeName(), nsHtml5Portability::newStringFromString(values[i]));
}
return clone;
}
void
nsHtml5HtmlAttributes::initializeStatics()
{