It's an interesting issue! In both coding and semantics. To my mind it was odd that that HTML 4 rule was abandoned. Div went from king to ordinary vassal. Probably one of the most radical steps of 4 to 5 in terms of legacy?
But maybe it was right. Perhaps for good reason, in the sense that div's inside p can act as much superior spans that offer a kind of transcending dynamic. J. On Monday, 25 March 2019 11:19:41 UTC+1, Jeremy Ruston wrote: > > Hi Mario > > I’ve just been checking this out too. It seems that the problem is this > construction: > > <p><div > style="font-size:0.7em;text-align:center;margin-top:2em;margin-bottom:2em;"> > > </div></p> > > In other words, a paragraph containing an empty div. > > If I paste that fragment into the text input node of > https://validator.w3.org/nu/#textarea in place of the paragraph tag in > the default document, then I get the same error. > > The rule that is being broken is that HTML 4 doesn’t permit DIVs within > other block level elements. This stackoverflow answer discusses it: > > https://stackoverflow.com/a/10763952 > <https://www.google.com/url?q=https%3A%2F%2Fstackoverflow.com%2Fa%2F10763952&sa=D&sntz=1&usg=AFQjCNFle_rmOBHvf5ORIlHk3X_YAG7JSg> > > Best wishes > > Jeremy > > On 25 Mar 2019, at 09:13, PMario <[email protected] <javascript:>> wrote: > > Hi, > > I had a closer look. There seems to be a problem with the validator in > strict mode. If you open the TW source 2 lines above is the opening p-tag. > > BUT at the moment TW UI creates some unnecessary "invalid" p-tags. ... So > the validator may be confused. ... > > ----------- > > Be aware! The content that you described, is dynamically created from: > https://github.com/Jermolene/TiddlyWiki5/blob/master/editions/tw5.com/tiddlers/hellothere/HelloThere.tid > > and is only shown if Javascript is deactivated. > > ---------------- > > The whole TW file is based on several templates. The file itself is > dynamically created, and contains a lot of redundant info. ... > > So if you want to "reverse-engineer" the content, you can probably save a > lot of time if you describe what you try to achieve, and we tell you, how > you can easily find the right pieces. Since that exactly the same > procedure, that TW has to do at startup. > > -m > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/tiddlywiki. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/aa0ac5cf-a655-4acc-91bf-912e8497b9fb%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/aa0ac5cf-a655-4acc-91bf-912e8497b9fb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d75fa5ab-5df5-4e56-9379-ed4376cef91f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

