Skip to content

Commit

Permalink
Still not there, but leave for later
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela committed Jul 16, 2024
1 parent 98ed563 commit d04a737
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/plugins/backdropimage/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@
else {
let parent = document.createElement(node.name);
while (node = node.walk()) {

Check failure on line 208 in js/plugins/backdropimage/plugin.js

View workflow job for this annotation

GitHub Actions / PHP_CodeSniffer, JSHint

Expected a conditional expression and instead saw an assignment.
if (node.name === 'p') {
// Unclear where these "p" come from.
continue;
}
if (node.name === 'br' && !node.parent) {
// Another riddle - only if there's more than one "br" in a
// figcaption, odd things happen.
// @todo
continue;
}
if (node.name === '#text') {
if (node.parent.name === parent.nodeName.toLowerCase()) {
parent.append(document.createTextNode(node.value));
Expand Down

0 comments on commit d04a737

Please sign in to comment.