mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 15:47:30 +09:00
Bug 1301024 - Part 1: Set CreateElement/CreateElementNS is attribute.
Tag UXP Issue #1344
This commit is contained in:
parent
a8c9f80fbe
commit
054c852fd2
1 changed files with 8 additions and 0 deletions
|
|
@ -5399,6 +5399,10 @@ nsDocument::CreateElement(const nsAString& aTagName,
|
||||||
RefPtr<Element> elem = CreateElem(
|
RefPtr<Element> elem = CreateElem(
|
||||||
needsLowercase ? lcTagName : aTagName, nullptr, mDefaultElementType, is);
|
needsLowercase ? lcTagName : aTagName, nullptr, mDefaultElementType, is);
|
||||||
|
|
||||||
|
if (is) {
|
||||||
|
elem->SetAttr(kNameSpaceID_None, nsGkAtoms::is, *is, true);
|
||||||
|
}
|
||||||
|
|
||||||
return elem.forget();
|
return elem.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5443,6 +5447,10 @@ nsDocument::CreateElementNS(const nsAString& aNamespaceURI,
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is) {
|
||||||
|
element->SetAttr(kNameSpaceID_None, nsGkAtoms::is, *is, true);
|
||||||
|
}
|
||||||
|
|
||||||
return element.forget();
|
return element.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue