掲示板

AUI input VS. W3C validator (Login portlet)

9年前 に Patrik Holecka によって更新されました。

AUI input VS. W3C validator (Login portlet)

Junior Member 投稿: 46 参加年月日: 13/10/21 最新の投稿
Hi all,
I am trying to validate my site but I am getting this error in w3c vlaidator:
Line 2, Column 11038: Stray end tag label.
…     type="text" value=""   /&gt;   <div class="control-group"> <la…< code></la…<></div>
<br><br><pre><code>Line 2, Column 11285: Stray end tag label. … type="password" value="" /&gt; <span id="_58_INSTANCE_E3j7_pas…</code></pre><br /><br /><pre><code>Line 2, Column 11570: Any input descendant of a label element with a for attribute must have an ID value that matches that for attribute. …emberMe" type="hidden" value="false"></span> <input class="field" id="_58_INSTANC…</code></pre><br /><br /><pre><code>Line 2, Column 11767: The label element may contain at most one input, button, select, textarea, or keygen descendant. …; " type="checkbox" value="false"> Zapamätaj si ma </code></pre><code><br><br>It seem that something is wring in generating html in AUI input.<br>Source code is in attachment.<br><br>Can anybody help me with getting my site be validated?<br>Thanks,<br>Patrik</code>
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: AUI input VS. W3C validator (Login portlet)

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
You typically will have very little success using validators and checkers against Liferay. It's code is right and will work, it just doesn't necessarily conform to the "best practices" promoted by these organizations.

They know all about static or servlet-based HTML pages, but they know little if any about portlets and the portlet namespacing of IDs in order to prevent form element collisions.

Some tools can't handle the additional javascript that runs in the browser after the page has loaded which updates the DOM. Don't know about your tool per se, but it's something to consider.

After looking at your page, it appears to be a standard portal page. If it renders correctly within your organization, that's often the best validation you can get.
9年前 に Patrik Holecka によって更新されました。

RE: AUI input VS. W3C validator (Login portlet)

Junior Member 投稿: 46 参加年月日: 13/10/21 最新の投稿
Hi, thank you for your reply.
I know that it can be big problem to make liferay site valid but there can be legislative requirements on site to be valid.
I think that there can be problem in /html/aui/input/page.jsp somewhere in conditions that are handling label generating.