Forum


Replies: 4   Views: 1508
Domnode::insertbefore(): document fragment is empty
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by neukanri  · 12-11-2020 - 06:43

I use phpdocx 10 premium.

I make a word using a template.
The following warning is given in replaceVariableHTML.
DOMNode:: insertBefore(): Document Fragment is empty

I make a word from HTML.
The options are as follows.
'customListStyles' => true,
'strictWordStyles' => true,
'disableWrapValue' => true,
'removeLineBreaks' => true,
'wordStyles' => array
  '.listA' => 'listA'
)

Warning seems to be over a list when I do not appoint a class at making.

What is the method of preventing you from giving warning?

※The warning was not given in phpdocx9.