mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 13:58:40 +09:00
Bug 1398401 - Add preference check for custom element setup.
Tag UXP Issue #1344
This commit is contained in:
parent
6f325a61af
commit
a8c9f80fbe
1 changed files with 3 additions and 1 deletions
|
|
@ -439,7 +439,9 @@ nsHtml5TreeOperation::CreateElement(int32_t aNs,
|
|||
false);
|
||||
|
||||
// Custom element setup may be needed if there is an "is" attribute.
|
||||
if (kNameSpaceID_None == nsuri && !prefix && nsGkAtoms::is == localName) {
|
||||
if (nsContentUtils::IsWebComponentsEnabled() &&
|
||||
kNameSpaceID_None == nsuri &&
|
||||
!prefix && nsGkAtoms::is == localName) {
|
||||
nsContentUtils::SetupCustomElement(newContent, &value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue