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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
2bd80a81
Commit
2bd80a81
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 often used to achieve surprising styling
parent
2e848aa5
Changes
1
Show 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 @
2bd80a81
...
@@ -127,10 +127,6 @@
...
@@ -127,10 +127,6 @@
src
:
true
,
src
:
true
,
srcset
:
true
srcset
:
true
}
}
},
emptylist
=
{
BR
:
true
,
HR
:
true
},
},
blacklist
=
{
blacklist
=
{
SCRIPT
:
true
,
SCRIPT
:
true
,
...
@@ -253,12 +249,6 @@
...
@@ -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