Output the code without single line and with standard formattingOutput the code without single line and with standard formattinghttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1191917922024-03-28T23:00:37Z2024-03-28T23:00:37ZRE: Output the code without single line and with standard formattingMarcin Klinskihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1192115602020-05-21T12:20:59Z2020-05-21T12:20:59Z<html class="aui ltr yui3-js-enabled trident ltr js ie ie11 ie11-0 win secure svg inlinesvg no-supports no-cssfilters" lang="en-GB" dir="ltr"><head></head><body>Christoph, thanks for reply.<br>The output HTML code is W3C correct so all <div> etc should be closed correctly. I also make changes with portal-ext.properties but that not help - the code is now without oneline but i see that at the beggining there are some multiple spaces / new lines / tabs etc. <br>I noticed that YUI script adding wrong code at the top and we have after DOM:<br><br><pre><code>
<div id="yui3-css-stamp" style="visibility: hidden !important; position: absolute !important;"></div>
<title>Welcome</title>
</code></pre><br>I found some info here about that problem <a href="https://github.com/liferay/yui3/pull/21">https://github.com/liferay/yui3/pull/21</a><br>But after all I just add some jQuery code to remove yui3-css-stamp div $("#yui3-css-stamp").remove(); and now PowerMapper works !</body></html>Marcin Klinski2020-05-21T12:20:59ZRE: Output the code without single line and with standard formattingChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191961012020-05-19T14:12:57Z2020-05-19T14:12:57ZI can only guess here. Do you have a custom theme? Maybe it reacts badly to some header? Could you try with the standard theme?<br />You can disable the stripfilter altogether in Liferay. Could you try that and recheck again, maybe the filter breaks something. You can do that by adding the following line to portal-ext.properties<br />com.liferay.portal.servlet.filters.strip.StripFilter=false<br />For me, this looks a bit like "autocorrected" html, when a tag is missing, sometimes tools "correct" the html by adding the missing closing (or opening) tags somewhere. And by doing that, they introduce other issues.Christoph Rabel2020-05-19T14:12:57ZRE: Output the code without single line and with standard formattingMarcin Klinskihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191921482020-05-19T12:30:56Z2020-05-19T12:30:56Z<html class="aui ltr yui3-js-enabled trident ltr js ie ie11 ie11-0 win secure svg inlinesvg no-supports no-cssfilters" lang="en-GB" dir="ltr"><head></head><body>Thanks, now I see the code without single line but the online validator still download different code, thats unsual ...<br>Online walidator gets that code:<br><pre><code>
<title></title>
<div id="yui3-css-stamp" style="visibility: hidden !important; position: absolute !important;"></div>
<title>
Welcome
</title>
</code></pre>But browser generate code correctly:<br><pre><code> <title>Welcome</title></code></pre></body></html>Marcin Klinski2020-05-19T12:30:56ZRE: Output the code without single line and with standard formattingChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191957792020-05-19T12:14:47Z2020-05-19T12:14:47ZYou can use ?strip=false to disable the relevant filter.Christoph Rabel2020-05-19T12:14:47ZOutput the code without single line and with standard formattingMarcin Klinskihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191917912020-05-19T11:50:49Z2020-05-19T11:50:49ZHello,<br />I need to check WCAG 2.1 errors on page but if I read the URL by online tool <a href="https://www.powermapper.com/products/sortsite/checks/accessibility-checks/">PowerMapper</a> (and also another tools) there are some wrong code (empty <title> in <body&g