This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-f5625608-b9d8-4844-8928-26ba59b3c324 XWIKI-22293 Open

HTML error and non-rendered Velocity in export modal

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-746d10a9-6cc8-4646-bc3c-0cb20eefbc3f JP Kleijn created this issue on 21/Jun/24 17:56
 
Summary: HTML error and non-rendered Velocity in export modal
Issue Type: cid:jira-generated-image-avatar-f5625608-b9d8-4844-8928-26ba59b3c324 Bug
Affects Versions: 16.4.0
Assignee: Unassigned
Components: {Unused} Export
Created: 21/Jun/24 17:56
Environment: Not relevant.
Labels: Export HTML
Priority: cid:jira-generated-image-static-major-83b0f1a3-dd62-44f4-8ed2-a4a9cd022481 Major
Reporter: JP Kleijn
Description:

I spotted two different types of errors in the export modal.

One is a <div> element with only a non-existent attribute name of "hidden". E.g.:

<div hidden> 

This would have to be changed to:

<div class="hidden"> 

The other two are errors of Velocity content not being generated, viz.:

$services.rendering.render($uix.execute(), 'html/5.0')         $services.rendering.render($uix.execute(), 'html/5.0') 

An excerpt from the export modal wherein these errors are located, so as to better locate these errors:

<div class="modal-dialog">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
        <span class="fa fa-times" aria-hidden="true"></span>
      </button>
      <div class="modal-title" id="exportModalLabel">
        <span class="fa fa-download" aria-hidden="true"></span>
        Export
      </div>
    </div>
    <div class="modal-body xform">
      <p class="xHint">
        Choose the export format from the list below:
      </p>
      <div hidden="">
        $services.rendering.render($uix.execute(), 'html/5.0')
        $services.rendering.render($uix.execute(), 'html/5.0')
        <script id="pdfExportConfig" type="application/json">{"icons":{"pdf":{"iconSetName":"Font Awesome","cssClass":"fa fa-file-pdf-o","iconSetType":"FONT","url":""},"error":{"iconSetName":"Font Awesome","cssClass":"fa fa-exclamation-triangle","iconSetType":"FONT","url":""},"spinner":{"cssClass":"fa fa-spinner fa-spin"}},"templates":[{"label":"Default template","value":"xwiki:XWiki.PDFExport.Template"}],"serverSide":false,"pageReadyTimeout":60}</script>
      </div>
      <div class="xwiki-select xwiki-export-formats xwiki-select-3-columns" id="xwiki-select-mYa" data-ready="true">
        <p>
          <label for="xwiki-select-mYa-filter" class="sr-only">
            Filter
          </label>
          <input type="text" id="xwiki-select-mYa-filter" class="xwiki-select-filter" placeholder="Type to filter...">
        </p>
        <span id="xwiki-select-mYa-listbox-label" hidden="">
          Options for exportFormat
        </span>
...