Page 1 of 2

HTML code in post, issue (v1.6.2)

Posted: Fri Sep 08, 2017 8:20 pm
by Kimda
Hi,
When i use this code in page

Code: Select all

<div><i>“lorem”</i></div><br />
<br />
<div><b>ipsum</b></div>
Than i see only world "lorem". Everything below is not loaded.

When i minify html or remove div, than everything is loaded correctly.

Code: Select all

<div><i>“lorem”</i></div><br /><br /><div><b>ipsum</b></div>
or

Code: Select all

<i>“lorem”</i><br />
<br />
<div><b>ipsum</b></div>

Re: HTML code in post, issue (v1.6.2)

Posted: Fri Sep 08, 2017 11:41 pm
by Edi
Which editor do you use? The standard editor SimpleMDE?

Re: HTML code in post, issue (v1.6.2)

Posted: Sat Sep 09, 2017 3:27 pm
by Kimda
SimpleMDE is disabled.

Re: HTML code in post, issue (v1.6.2)

Posted: Sat Sep 09, 2017 8:24 pm
by Edi
The problem is caused bei the <div>[..]</div> without any definitions (ID, class or style).

In addition to this the HTML tags <i> and <b> are deprecated. Instead the semantic tags <em> and <strong> have to be used.

Re: HTML code in post, issue (v1.6.2)

Posted: Sat Sep 09, 2017 9:53 pm
by Kimda
The problem is caused bei the <div>[..]</div> without any definitions (ID, class or style).
The problem exist both with and without classes. Anyway what a differences? With or without classes it should work.
In addition to this the HTML tags <i> and <b> are deprecated.
What HTML version you talking about? Tags <i> and <b> are elements of HTML5 https://www.w3.org/TR/html5/text-level- ... -i-element

Re: HTML code in post, issue (v1.6.2)

Posted: Tue Sep 19, 2017 2:53 pm
by Edi
Kimda wrote: Sat Sep 09, 2017 9:53 pm What HTML version you talking about? Tags <i> and <b> are elements of HTML5 https://www.w3.org/TR/html5/text-level- ... -i-element
This is true. I supposed from the given example you would like to cut and paste a Word document or something like this. :oops:

It depends what you want to do. Concerning the i element for example there is the following recommendation:

Authors are encouraged to consider whether other elements might be more applicable than the i element, for instance the em element for marking up stress emphasis, or the dfn element to mark up the defining instance of a term.

Re: HTML code in post, issue (v1.6.2)

Posted: Thu Sep 21, 2017 9:48 pm
by Kimda
I found another problem

Part of my html code

Code: Select all

</p></div>
</div>
<div class="row">
but browser source looks like

Code: Select all

</p></div></div>
<p></div></p>
<div class="row">
It seems that Bludit adding extra html code ;/

Re: HTML code in post, issue (v1.6.2)

Posted: Fri Sep 22, 2017 11:05 am
by Edi
Can you please post the whole HTML code of the content or a link to the page.

I have no problem with the snippet when using for example the following:

Code: Select all

<div class="row1">
    <div class="row2">
        <p></p>
    </div>
</div>
<div class="row">
In this case only a missing </div> is added at the end.

Re: HTML code in post, issue (v1.6.2)

Posted: Fri Sep 22, 2017 6:23 pm
by Kimda
I sent you pm.

Re: HTML code in post, issue (v1.6.2)

Posted: Mon Oct 09, 2017 7:22 pm
by Torsten_Kelsch
Edi wrote: Tue Sep 19, 2017 2:53 pm It depends what you want to do. Concerning the i element for example there is the following recommendation:

Authors are encouraged to consider whether other elements might be more applicable than the i element, for instance the em element for marking up stress emphasis, or the dfn element to mark up the defining instance of a term.
Exactly. In HTML5, i and b are only text formattings (italic/bold) without any semantic meaning. But em and strong are semantic elements (emphasized/important). Also, div is not semantic, but header, main, nav, aside etc. are. A div element (division) can be used for positioning or something like that (a wrapper for example). But if they have classes or not, should not make a difference for an HTML editor. They can even be empty, and the editor should not scramble the code, nonetheless.