Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
<dd> in the middle of <ul>?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Bowers  
View profile  
 More options May 17 2011, 12:50 am
From: Peter Bowers <pbow...@pobox.com>
Date: Tue, 17 May 2011 06:50:22 +0200
Local: Tues, May 17 2011 12:50 am
Subject: [pmwiki-devel] <dd> in the middle of <ul>?
I am trying to get a round-trip markup->html->markup and am having a
strange issue with bulleted lists.

This markup:

* LEVEL 1
*** LEVEL 3

(note the movement from a single * to 3 *s without an intermediate 2
*s) results in this HTML:

<ul><li>LEVEL 1
<dl><dd><ul><li>LEVEL 3
</li></ul></dd></dl></li></ul>

when I expected this HTML:

<ul><li>LEVEL 1
<ul><ul><li>LEVEL 3
</li></ul></ul></li></ul>

Is this intentional?  Or is it a bug?

-Peter

_______________________________________________
pmwiki-devel mailing list
pmwiki-de...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick R. Michaud  
View profile  
 More options May 17 2011, 2:19 am
From: "Patrick R. Michaud" <pmich...@pobox.com>
Date: Tue, 17 May 2011 01:19:39 -0500
Local: Tues, May 17 2011 2:19 am
Subject: Re: [pmwiki-devel] <dd> in the middle of <ul>?

On Tue, May 17, 2011 at 06:50:22AM +0200, Peter Bowers wrote:
> [...]
> when I expected this HTML:

> <ul><li>LEVEL 1
> <ul><ul><li>LEVEL 3
> </li></ul></ul></li></ul>

> Is this intentional?  Or is it a bug?

It's intentional.  The second line of what you expected is not valid
HTML or XHTML -- a <ul> block is only allowed to contain <li> elements.
(The "<ul><ul>" sequence is is invalid.)  Fixing things to use <ul>
would therefore result in an extra layer of bullets in the output,
or we have to do weird things with style= or class= attributes to
avoid them.

The "***" markup simply means "unordered list at third level", it
doesn't mean that the lists at the first and second levels must
also be unordered lists.

Pm

_______________________________________________
pmwiki-devel mailing list
pmwiki-de...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »