WordPress.org

Ready to get started?Download WordPress

Forums

COLGROUP still not recognized; spurious BR added (6 posts)

  1. joeclark
    Member
    Posted 8 years ago #

    As seen on a previous entry where the unhelpful advice was to discuss it on a mailing list:

    colgroup cannot be used in a WP blog entry. The parser places spurious br tags at the end of each instance, thereby causing validation errors.

    That remains true even if all whitespace is deleted from a range beginning immediately before and ending immediately after the colgroup. I don't think any enclosed col elements cause problems.

    Was true in 1.x and is true in 2.01 alpha.

  2. vkaryl
    Member
    Posted 8 years ago #

    Gosh, the referral to the programmers' lists wasn't unhelpful at all really. That's how this sort of thing gets added sometimes to the program. Had the OP on the linked thread posted to the list, perhaps it would be included in this release.

    What's it good for, btw? I don't know that I've ever run across those tags....

  3. ifelse
    Member
    Posted 8 years ago #

    I've just tested this and you're correct Joe. I've raised it to the wp-hackers list as I noticed that an earlier patch had been made which was supposed to have addressed this issue (http://trac.wordpress.org/changeset/1914).

    What's it good for, btw?

    As the name suggests, it's for the grouping of columns. One use would be to cleanly style a set of columns e.g. with the following markup, you could apply a common style to two columns with one class:

    <table>
    <colgroup span="2" class="importantColumns"></colgroup>
    <tr>
    <th>Name</th>
    <th>Type</th>
    <th>Comment</th>
    </tr>
    <tr>
    <td>Foo</td>
    <td>Bar</td>
    <td>Baz</td>
    </tr>
    </table>

  4. vkaryl
    Member
    Posted 8 years ago #

    Oh. If one used tables, you mean.

  5. ifelse
    Member
    Posted 8 years ago #

    If one used tables, you mean.

    For tabular data, of course. But we digress:)

  6. vkaryl
    Member
    Posted 8 years ago #

    No, not really. Because there are times of course when that would definitely be useful in tabular data. My blogs don't have that need, but there are surely people who use actuarial tables and so on in their postings.

    So IF this particular thing worked (and since you've now posted it to trac, perhaps it will eventually get fixed), it might help out some folks who've had problems posting tabular data to their blogs.

Topic Closed

This topic has been closed to new replies.

About this Topic