Commit 25ed1eba authored by Tom Schuster's avatar Tom Schuster
Browse files

Bug 1871112 - ESR 115: Specialize AddAttributes for <html>/<body>. r=hsivonen, a=dsmith

parent f9703303
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -393,7 +393,8 @@ nsresult nsHtml5TreeOperation::AddAttributes(nsIContent* aNode,
    --i;
    nsAtom* localName = aAttributes->getLocalNameNoBoundsCheck(i);
    int32_t nsuri = aAttributes->getURINoBoundsCheck(i);
    if (!node->HasAttr(nsuri, localName)) {
    if (!node->HasAttr(nsuri, localName) &&
        !(nsuri == kNameSpaceID_None && localName == nsGkAtoms::nonce)) {
      nsString value;  // Not Auto, because using it to hold nsStringBuffer*
      aAttributes->getValueNoBoundsCheck(i).ToString(value);
      node->SetAttr(nsuri, localName, aAttributes->getPrefixNoBoundsCheck(i),