Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
3f0388aa
Commit
3f0388aa
authored
Feb 25, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: html viewer: do not drop empty element
They are ofter used to achieve surprising styling
parent
2e848aa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/gadget_html_viewer.js.js
...plateItem/portal_skins/erp5_core/gadget_html_viewer.js.js
+0
-10
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/gadget_html_viewer.js.js
View file @
3f0388aa
...
...
@@ -128,10 +128,6 @@
srcset
:
true
}
},
emptylist
=
{
BR
:
true
,
HR
:
true
},
blacklist
=
{
SCRIPT
:
true
,
STYLE
:
true
,
...
...
@@ -253,12 +249,6 @@
}
}
// Drop element if no text or link
if
((
link_len
===
0
)
&&
(
!
already_dropped
)
&&
(
!
current_node
.
textContent
)
&&
(
!
emptylist
[
current_node
.
nodeName
]))
{
current_node
.
parentNode
.
removeChild
(
current_node
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment