RSS Feed/News XF.DescLoader loses data if only one element is returned

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,805
Points
823

Reputation:

Problem: If XF.DescLoader returns only one parent HTML element, f.ex.
HTML:

Code:
                <dl class="pairs pairs--columns pairs--fixedSmall pairs--customField" data-field="min_platform_version">
                    <dt>Minimum Platform Version</dt>
                    <dd>2.2.0</dd>
                </dl>
The wrapper <dl> will be lost due to containerEl.innerHTML = html.innerHTML in onLoad, which causes the resulting display to look different. This line...

Read more

Continue reading...
 
Status
Not open for further replies.
Top