Lots of "element contained an inline #text child" on about:addons

NEW
Unassigned

Status

()

Firefox for Android
General
P3
normal
7 years ago
6 years ago

People

(Reporter: Wladimir Palant, Unassigned)

Tracking

Trunk
ARM
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
I noticed lots of warnings being sent to the console whenever I open about:addons:

> Warning: XUL box for div element contained an inline #text child, forcing all its children to be wrapped in a block.

This is apparently about the dynamically created <div> elements, these end up being xul:div rather than html:div. This is somewhat strange given that aboutAddons.xhtml should be an HTML document so that the default namespace would be HTML (I actually verified on the desktop that it works correctly). However, it is apparently set up as an override for a XUL document (http://hg.mozilla.org/mozilla-central/file/34572943a3e4/mobile/android/chrome/jar.mn#l29) which makes the channel use the XUL MIME type. There doesn't seem to be any major issue with that - other than the default XML namespace being the XUL namespace.

The obvious solution would be changing all document.createElement() in aboutAddons.xhtml to document.createElementNS() and to specify the namespace explicitly.

Updated

7 years ago
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.