Преглед изворни кода

handling JSVerify RNG state 82fb7d20c918a6e543

El RIDO пре 8 година
родитељ
комит
5a2bb1993d
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      js/test.js

+ 3 - 2
js/test.js

@@ -804,8 +804,9 @@ describe('Model', function () {
                 element = element.join('');
                 value = value.join('').trim();
 
-                // <br>, <hr> and <wbr> tags can't contain strings, table tags can't be alone, so test with a <p> instead
-                if (['br', 'col', 'hr', 'tr', 'td', 'th', 'wbr'].indexOf(element) >= 0) {
+                // <br>, <hr>, <img> and <wbr> tags can't contain strings,
+                // table tags can't be alone, so test with a <p> instead
+                if (['br', 'col', 'hr', 'img', 'tr', 'td', 'th', 'wbr'].indexOf(element) >= 0) {
                     element = 'p';
                 }