No closing tag for list items

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
jrfinkel
Posts: 3
Joined: Sun Oct 03, 2010 5:59 pm

No closing tag for list items

Post by jrfinkel »

The List macro is very convenient. However, it fails to close each list item tag.

For example, this:

Code: Select all

<ol>
<li>item one
<li>item two
</ol>

should be this:

Code: Select all

<ol>
<li>item one</li>
<li>item two</li>
</ol>
Whereas some macros in the Library can be edited, I find no way to edit this one in order to have it inject correct XHTML.

Thanks.

-Joel
jrfinkel
Posts: 3
Joined: Sun Oct 03, 2010 5:59 pm

Re: No closing tag for list items

Post by jrfinkel »

By the way, this is in WeBuilder 2010 Version 10.2 (10.2.0.121)
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: No closing tag for list items

Post by MikeyB »

There is an option in the settings, but why you'd not want to close the tags I don't know!

Goto Otions -> Preferences -> Language Options -> HTML and you'll see an option for Add list item end-tags

Mike
jrfinkel
Posts: 3
Joined: Sun Oct 03, 2010 5:59 pm

Re: No closing tag for list items

Post by jrfinkel »

Sure enough. Thanks! I agree that this should default to On.
xtom
Posts: 46
Joined: Thu Jun 10, 2010 5:19 pm
Location: Kildare, Ireland
Contact:

Re: No closing tag for list items

Post by xtom »

I had they same problem a while ago, it kept leaving the closing </li> tags out everytime, but it has been working fine since. I have that option disabled and it's working adding the closing </li>, I'm not sure but there might be something dodgy going on with it.
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: No closing tag for list items

Post by Gatis »

Hi,

The behaviour depends not only on this option, but also on the document type you are using. Some specifications require the closing tag for <li> item, some don't.
Having that option enabled, means the closing tag will be added no matter what.
Kind regards,
Gatis Avots
Post Reply