Ticket #1144 (new defect)

Opened 10 months ago

Last modified 4 months ago

XHTML and nested lists

Reported by: guest Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version: trunk
Severity: minor Keywords:
Cc:

Description

XHTML transitional requires <ul><li>abc<ul><li>one</li><li>two</li></ul></li></ul>

instead of:

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

to validate. I think it's rather stupid, but hey, it's the spec. Xinha produces the latter.

Change History

Changed 4 months ago by gogo

  • severity changed from normal to minor
  • milestone deleted

This appears to be the browser behaviour for execCommand 'indent' (at least in Firefox, havn't checked IE) not the doing of Xinha.

I think realistically that this would be quite difficult to work around in a useful manner, on the face of it, it seems simple, but then you think about what happens when you "outdent" something in the middle of an indented list, you now have to break the list in two and put the one outdented somewhere and..... oh boy.

A job for an "XHTML Output" plugin maybe.

Note: See TracTickets for help on using tickets.