-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.10 DXP FP5, 7.1.10 DXP FP9, Master
-
Fix Version/s: 7.0.0 DXP FP82, 7.0.10.12 DXP SP12, 7.0.X, 7.1.3 CE GA4, 7.1.10 DXP FP11, 7.1.X, Master
-
Component/s: Site Templates
-
Branch Version/s:7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Story Points:1
-
Fix Priority:4
-
Git Pull Request:
-
What problem did the customer find?:
-
What do you think is the root cause? (if known):
-
Proposed solution (if any):
Description
When adding JavaScript with a syntax behavior into a structure/template, JavaScript is stripped from html with no errors in the console. This makes it difficult to pin point where the error is coming from as well as find where the error is in the JS code itself.
Steps to Reproduce
1. Create a structure/template. Add script tag with code that contains syntax error to template.
2. Create web content article for this structure/template.
3. Add article to a new page.
4. Refresh the page
5. Inspect article body with developer tools (go down the line within portlet-body).
6. Check if associated script tag contains any code in html and executes any of your JS code.
Expected Result
Code exists between associated script tags with console error
Actual Result
Associated script tags is empty with no new console error after refreshing
- causes
-
LPS-94170 Javascript minifier does strip expected characters
- Closed