1. Gerhard Sitzmann
  2. Newbie area
  3. Tuesday, 11 June 2013
  4.  Subscribe via email
Hello,

I get a W3C validation error for the comment form token input:
[code type=html4strict]No p element in scope but a p end tag seen.

…="hidden" name="db8da1fdd210fcc58a4b237b947ec645" value="1" /></div></p> </div>[/code]

This happens with the default template.

In default.php, line 154-156 the form token JHTML is echoed:
[code type=php]
<div id="ccomment-token" style="display:none;">
<?php echo JHtml::_('form.token'); ?>
</div>
[/code]

The HTML output is:
[code type=html4strict]
<div id="ccomment-token" style="display:none;">
<input type="hidden" name="06f8e52bd60f1bce8b9f7f5185a5139a" value="1" /></div></p> </div>
[/code]

I would like to eliminate the closing </p> tag here.

Where do I find the function in Joomla core that puts out the form token input? I googled already but couldn't find it.

Sorry, I don't mean to be picky, but my client requires me to have full W3C validation.
Responses (5)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now

Last questions

PHP 8.1.12 Deprecated: strlen()
There is a problem with php 8.1.12 in Latest comments module. In php 8.0 is all ...
0 Replies
Posted on Friday, 25 November 2022
  • New
    • #PHP Deprecated
    Email notifications not being sent to admin when n
    I am not receiving notifications of new comments by email and I have searched th...
    2 Replies
    Posted on Thursday, 24 November 2022
  • New
  • JQuery lokal einbinden
    Hallo zusammen, wie kann ich es umgehen das die JQUery funktionen von Google ...
    1 Replies
    Posted on Tuesday, 22 November 2022
  • New
  • Matukio stable version for Joomla! 4
    Hello, is there an expected date when a stable version of Matukio will be rel...
    13 Replies
    Posted on Friday, 11 March 2022
    • #Matukio 7.00 RC1
    Frontends comments "occasionally" not vi
    Hi Devs, we think to have found a bug on CComment 6.1.7. In particular, it occ...
    5 Replies
    Posted on Tuesday, 25 October 2022