fx-compat: Correct create[XUL]Element[NS]() calls
This fixes the dictionary manager and various other places where a XUL element was being created with createElement(), and also simplifies a lot of createElementNS(HTML_NS, ...) calls. This might cause some minor regressions but everything tested has worked. Not touching preferences (#2659) or bindings.
This commit is contained in:
parent
8b7d959781
commit
f81b4b071f
26 changed files with 103 additions and 110 deletions
|
@ -124,7 +124,7 @@ var Scaffold = new function () {
|
|||
var primaryTypes = ['book', 'bookSection', 'conferencePaper', 'journalArticle', 'magazineArticle', 'newspaperArticle'];
|
||||
for (let type of types) {
|
||||
if (primaryTypes.includes(type)) continue;
|
||||
var menuitem = document.createElement('menuitem');
|
||||
var menuitem = document.createXULElement('menuitem');
|
||||
menuitem.setAttribute('label', type);
|
||||
menuitem.addEventListener('command', () => {
|
||||
Scaffold.addTemplate('templateNewItem', type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue