Hi,
sometime DIV closing tags are not suggested. Seems related to PHP output buffering function(s) on the page (? just a guess). Other closing tags (span, ..) will be suggested but DIV somehow is not. Happens irregularly. Reproduce issue - insert into new PHP page in IDE:
<div id="msg-insurance-case">
<?php if(!$insurance->id){ ?>
<div class="alert alert-warning text-center">
<i class="fa fa-info-circle mr-1"></i>
<button type='button' class='close' data-dismiss='alert'>×</button>
<?= Yii::t('app', 'Poistný prípad nie je vytvorený.') ?>
</div>
<?php } ?>
<div id="msg-insurance-case">
<?= Response::FORMAT_JSON ?>
<span id="msg-insurance-case">
<?= Response::FORMAT_JSON ?>
</span>
</ <------ CLOSING DIV TAG NOT SUGGESTED
</div>
<?php ob_start() ?>
<script type="text/javascript">
<?php ob_start() ?>
/* empty .. */
<?php $this->registerJs(ob_get_clean()) ?>
</script>
<style>
<?php ob_start() ?>
/* empty */
<?php $this->registerCss(ob_get_clean()) ?>
</style>
<?php ob_end_clean();
|
Screen:
https://i.ibb.co/nqxpRHDP/screen-bug-nusphere-closing-tags-not-suggested-jpg.png
Thank you.