Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-04-19 09:32:40

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

r3747 structure wrong

The structure introduced in r3747 is actually incorrect. Need to remove the fieldset and legend tags within the comments_group.

Currently it is:

<div id="comments_group">
  <h3 class="plain lever expanded"><a href="#comments">Comments</a></h3>
  <div id="comments" class="toggle">
    <fieldset id="write-comments">
      <legend>Comments</legend>
      <p class="comment-annotate">
        <input type="radio" id="Annotate-0" name="Annotate" value="0" class="radio active" checked="checked" /><label for="Annotate-0">Off</label>
        <input type="radio" id="Annotate-1" name="Annotate" value="1" class="radio" /><label for="Annotate-1">On</label>
      </p>
      <p class="comment-invite">
        <label for="comment-invite">Invitation</label><br />
        <input type="text" value="Comment" name="AnnotateInvite" class="edit" id="comment-invite" />
      </p>
    </fieldset>
  </div>
</div>

When it should like so:

<div id="comments_group">
  <h3 class="plain lever expanded"><a href="#comments">Comments</a></h3>
  <div id="comments" class="toggle">
    <p class="comment-annotate">
      <input type="radio" id="Annotate-0" name="Annotate" value="0" class="radio active" checked="checked" /><label for="Annotate-0">Off</label>
      <input type="radio" id="Annotate-1" name="Annotate" value="1" class="radio" /><label for="Annotate-1">On</label>
    </p>
    <p class="comment-invite">
      <label for="comment-invite">Invitation</label><br />
      <input type="text" value="Comment" name="AnnotateInvite" class="edit" id="comment-invite" />
    </p>
  </div>
</div>

Last edited by philwareham (2012-04-19 09:35:20)

Offline

#2 2012-04-19 14:06:43

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,134
Website

Re: r3747 structure wrong

I’m curious, why do you think it is wrong ? A <fieldset> is perfectly justified in my book.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2012-04-19 14:38:42

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: r3747 structure wrong

@phiw13

Because it’s inconsistent structure compared with the toggle boxes used in the #configuration_content column, and also it’s unnecessary to have an inner fieldset in this instance since it’s the only fields within the #comments_group toggle box anyway.

Currently we have a h3 on the #comments_group toggle box and then a legend on the inner fieldset fulfilling exactly the same role.

It makes more sense like this IMHO

Last edited by philwareham (2012-04-19 14:45:13)

Offline

#4 2012-06-10 08:19:42

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,328
Website Mastodon

Re: r3747 structure wrong

FYI: I introduced a container element around the comment status inputs in r3808.

Offline

#5 2012-06-10 08:51:51

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: r3747 structure wrong

Hi Wet, what’s the reasoning for that – it was already being contained by div#comments? None of the other collapsible areas (in the left hand side) have an inner container like that.

Offline

#6 2012-06-10 09:16:03

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,328
Website Mastodon

Re: r3747 structure wrong

I need a container which:

  1. can completely be replaced through AJAX
  2. gather its content from plugins through pluggable_ui()

The outer div#comments serves as the hook for the expand/collapse lever functionality. We do not assume that plugins handle the toggle functionality for the core thus we’d have to separate this part of the UI from the inner HTML, now contained in div#write-comments, p#write-comments.

It is also (a bit more) compatible with the extinct fieldset#write-comments from v4.4.1.

None of the other collapsible areas (in the left hand side) have an inner container like that.

We sort of have, e.g. with ul.recent.

Last edited by wet (2012-06-10 09:17:40)

Offline

#7 2012-06-10 09:31:29

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: r3747 structure wrong

Ok thanks. All makes sense.

Offline

Board footer

Powered by FluxBB