Skip to content

[Bug]: CDF - Rendering Issue with Type Attribute on DnnXxIncludes -- v10.02.00 RC2 #6851

@jeremy-farrance

Description

@jeremy-farrance

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

See code below for details and to reproduce using Aperture default.aspx

Test 4

Steps to reproduce?

In a new deploy or DNN v10.02.00 RC2, Insert everything below into ~/Portals/_default/Skins/Aperture/default.aspx at line 4.

<%-- copy+paste this into Aperture default.ascx at line 4 to test --%>

<%-- Test 4
  - Issue 4A: See `rel` on Issue #6850, same for `type` attribute, we specified `type="module"` but DNN adds `type="text/javascript"`
  - VERY nice to see the leading // (protocol relative url) is preserved in the src attribute! (was not the case previously)
--%>
<dnn:DnnJsInclude
  FilePath="//cdn.jsdelivr.net/npm/@dnncommunity/dnn-elements@0.27.5/dist/esm/dnn.js"
  ForceProvider="DnnPageHeaderProvider"
  HtmlAttributesAsString="rel:modulepreload,as:script,type:module,crossorigin:anonymous" 
  Priority="50"
  runat="server"
/>

<%-- 
Results in DNN v10.02.00 RC2:
<script src="//cdn.jsdelivr.net/npm/@dnncommunity/dnn-elements@0.27.5/dist/esm/dnn.js?cdv=250" 
  type="text/javascript" rel="modulepreload" as="script" type="module" crossorigin="anonymous"></script>

Results in DNN v10.01.02:
<script src="https://cdn.jsdelivr.net/npm/@dnncommunity/dnn-elements@0.27.5/dist/esm/dnn.js?cdv=223" 
  rel="modulepreload" as="script" type="module" crossorigin="anonymous"></script>

--%>




<%-- end of CDF tests, Aperture Skin below --%>

Current Behavior

Covered aboved.

Expected Behavior

Described above.

Relevant log output

n/a

Anything else?

No response

Affected Versions

10.02.00 RC2 or current development branch (unreleased)

What browsers are you seeing the problem on?

Chrome

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions