HTML code in post, issue (v1.6.2)

Kimda
Jr. Bludit
Posts: 6
Joined: Fri Sep 08, 2017 8:10 pm

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>
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Which editor do you use? The standard editor SimpleMDE?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Kimda
Jr. Bludit
Posts: 6
Joined: Fri Sep 08, 2017 8:10 pm

SimpleMDE is disabled.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Kimda
Jr. Bludit
Posts: 6
Joined: Fri Sep 08, 2017 8:10 pm

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
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Kimda
Jr. Bludit
Posts: 6
Joined: Fri Sep 08, 2017 8:10 pm

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 ;/
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Kimda
Jr. Bludit
Posts: 6
Joined: Fri Sep 08, 2017 8:10 pm

I sent you pm.
User avatar
Torsten_Kelsch
Legend Bludit
Posts: 263
Joined: Thu Aug 27, 2015 10:24 pm
Location: Germany
Has thanked: 4 times
Been thanked: 2 times
Contact:

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.
On Error GoTo Bed
Post Reply