• I’ve run across what seems to be a really nasty instance of the code-editor-inserting-phantom-tags bug:

    https://www.gardenschool.org/programs/conservatory/

    I have the “show visual editor” box unchecked, and yet when I input this code:

    <TABLE align=center>
    <tbody valign=”top”>
    <TR>
    <TD class=centeredlist>

    I get this:

    <p><TABLE align=center></p>
    <tbody valign=”top”>
    <TR><br>
    <TD class=centeredlist><br>

    which looks like it’s an attempt by my browser to render a long series of extraneous <br> and </p> tags.

    The resulting page, as you might expect, looks like crap. Anyone have any ideas for a fix, or at least a workaround?

Viewing 2 replies - 1 through 2 (of 2 total)
  • A little more info: the markup that WordPress is emitting is illegal. “/P” is not allowed between “TABLE” and “TBODY”, and “BR /” is not allowed between “TR” and “TD”.

    What happens as a result is that the implied P and the BRs get tidied up by the web browsers’ HTML parsers, and placed before the table for rendering purposes. Behold, lots and lots of blank vertical space, all because WP is emitting illegal tags for no demonstrable reason.

    Is there really no way to tell WordPress that no, really, you know what you’re doing and WP should not interfere with the markup you’re writing?

    Thread Starter nulldogmas

    (@nulldogmas)

    I finally found (thanks to ctate) the “Disable WPAUTOP” plugin, which shut down WP’s mad tag inserter. But man, what a way to run a railroad.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP editor (not WYSIWYG) inserting <br> and <p> tags’ is closed to new replies.