Skip to content

Columnizing UL creates invalid markup #126

@jarbot

Description

@jarbot

From http://www.w3.org/TR/html-markup/ul.html:
UL - Permitted contents: Zero or more li elements

When I columnize the following:

<ul>
    <li>one</li>
    <li>two</li>
</ul>

Result in something like:

<ul>
    <div>
        <li>one</li>
    </div>
    <div>
        <li>two</li>
    </div>
</ul>

I wouldn't really care except that when this is in a form and the user happens to be in IE8 preselected options in selects no longer function.

I thought it would be nice if the plugin would detect that it is dealing with a ul or ol and add an li and nested ul. This may cause style issues for some so I'm not sure if there is a good solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions