Seems like in this sort of text:
<s>some struck out text *a *list *that should *also be struck out </s>
That only the text prior to the list is struck out (the phrase "some struck out text" above). Not sure if this is an HTML rendering thing, intentional, a bug, or what. Just thought I would mention it.
Steve
On 15/05/06, Steve Bennett stevage@gmail.com wrote:
Seems like in this sort of text:
<s>some struck out text *a *list *that should *also be struck out </s>
The parser sees the * and starts a new <ul> container. Since tags can't overlap in XHTML, the <s> container must be closed before the <ul>.
Rob Church
On Mon, May 15, 2006 at 06:43:08PM +0100, Rob Church wrote:
On 15/05/06, Steve Bennett stevage@gmail.com wrote:
Seems like in this sort of text:
<s>some struck out text *a *list *that should *also be struck out </s>
The parser sees the * and starts a new <ul> container. Since tags can't overlap in XHTML, the <s> container must be closed before the
<ul>.
Tags can nest, though, so if the unordered list is entirely inside the strikethrough, it should technically work.
As far as I understand, a block element (<ul>) cannot be included in an inline element (<s>).
Chad Perrin wrote:
On Mon, May 15, 2006 at 06:43:08PM +0100, Rob Church wrote:
On 15/05/06, Steve Bennett stevage@gmail.com wrote:
Seems like in this sort of text:
<s>some struck out text *a *list *that should *also be struck out </s>
The parser sees the * and starts a new <ul> container. Since tags can't overlap in XHTML, the <s> container must be closed before the
<ul>.
Tags can nest, though, so if the unordered list is entirely inside the strikethrough, it should technically work.
On 15/05/06, Rotem Liss mail@rotemliss.com wrote:
As far as I understand, a block element (<ul>) cannot be included in an inline element (<s>).
That's the one I was angling for. Sorry, completely and utterly misexplained it the first time round.
Rob Church
Maybe it could be simulated... The parser could add <s></s> tags inside the <ul><li> list. In fact the user doesn't expect the <s> tag to be broken by the list.
Plyd
On 5/15/06, Rob Church robchur@gmail.com wrote:
On 15/05/06, Rotem Liss mail@rotemliss.com wrote:
As far as I understand, a block element (<ul>) cannot be included in an inline element (<s>).
That's the one I was angling for. Sorry, completely and utterly misexplained it the first time round.
Rob Church _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On 5/15/06, Plyd wiki.vincent@amplyd.com wrote:
Maybe it could be simulated... The parser could add <s></s> tags inside the <ul><li> list. In fact the user doesn't expect the <s> tag to be broken by the list.
That's what I mean, it could be done, but is it worth it? Does it affect other tags?
Steve
Hi!
On 5/15/06, Steve Bennett stevage@gmail.com wrote:
On 5/15/06, Plyd wiki.vincent@amplyd.com wrote:
Maybe it could be simulated... The parser could add <s></s> tags inside the <ul><li> list. In fact the user doesn't expect the <s> tag to be broken by the list.
That's what I mean, it could be done, but is it worth it? Does it affect other tags?
I don't think it would be worth it. If you need it (I think it is quite a rare need), you might instead of <s> </s> write <div style="text-decoration: line-through"> and </div> (or, write a template for it (if there is not such one yet), of course).
HTH, -- [[cs:User:Mormegil | Petr Kadlec]]
On 5/15/06, Petr Kadlec petr.kadlec@gmail.com wrote:
I don't think it would be worth it. If you need it (I think it is quite a rare need), you might instead of <s> </s> write
<div style="text-decoration: line-through"> and </div> (or, write a template for it (if there is not such one yet), of course).
I agree, not worth it. But good reminder about text-decoration...
Incidentally, is there a general template (on en) for doing div tags? Might look something like {{div|text|style string}}...
Steve
On 5/15/06, Rotem Liss mail@rotemliss.com wrote:
As far as I understand, a block element (<ul>) cannot be included in an inline element (<s>).
Ok, that makes sense. Ideally mediawiki would generate two tags and all that, but it's such a minor thing, there are lots more important to worry about.
It was just noticeable when I wanted to strike out a whole paragraph with bullet points.
Steve
On Mon, May 15, 2006 at 09:16:46PM +0300, Rotem Liss wrote:
As far as I understand, a block element (<ul>) cannot be included in an inline element (<s>).
You can always redefine block elements as inline elements, and vice versa, though. Of course, I'm not entirely sure that's relevant to this discussion.
Chad Perrin wrote:
On Mon, May 15, 2006 at 09:16:46PM +0300, Rotem Liss wrote:
As far as I understand, a block element (<ul>) cannot be included in an inline element (<s>).
You can always redefine block elements as inline elements, and vice versa, though. Of course, I'm not entirely sure that's relevant to this discussion.
No, you can't. You can use CSS to make <s> appear as a block element, or <ul> as an inline element, but that doesn't make <ul> allowed inside <s>.
Timwi
On Sun, May 21, 2006 at 07:23:05PM +0100, Timwi wrote:
Chad Perrin wrote:
On Mon, May 15, 2006 at 09:16:46PM +0300, Rotem Liss wrote:
As far as I understand, a block element (<ul>) cannot be included in an inline element (<s>).
You can always redefine block elements as inline elements, and vice versa, though. Of course, I'm not entirely sure that's relevant to this discussion.
No, you can't. You can use CSS to make <s> appear as a block element, or
<ul> as an inline element, but that doesn't make <ul> allowed inside <s>.
. . . for what definition of "allowed"?
In answer to which specific statement was "No, you can't" written? Intuitively, it looks like you're responding to the statement that block elements can be redefined as inline elements, but then you say that you can make ul and inline element. You seem to contradict yourself, unless you're making some kind of distinction between "redefine [block elements] as inline elements" and "make [a block element] appear [. . .] as an inline element".
Chad Perrin wrote:
On Sun, May 21, 2006 at 07:23:05PM +0100, Timwi wrote:
Chad Perrin wrote:
On Mon, May 15, 2006 at 09:16:46PM +0300, Rotem Liss wrote:
As far as I understand, a block element (<ul>) cannot be included in an inline element (<s>).
You can always redefine block elements as inline elements, and vice versa, though. Of course, I'm not entirely sure that's relevant to this discussion.
No, you can't. You can use CSS to make <s> appear as a block element, or
<ul> as an inline element, but that doesn't make <ul> allowed inside <s>.
. . . for what definition of "allowed"?
For the definition "a validating XHTML parser won't barf up errors".
In answer to which specific statement was "No, you can't" written? Intuitively, it looks like you're responding to the statement that block elements can be redefined as inline elements, but then you say that you can make ul and inline element. You seem to contradict yourself, unless you're making some kind of distinction between "redefine [block elements] as inline elements" and "make [a block element] appear [. . .] as an inline element".
He's making a distinction between the two similar, but different document structures:
* (X)HTML document tree * CSS layout tree
(X)HTML calls certain elements "block" elements and certain other elements "inline". This implies certain things about how they are displayed, but more to the point you're explicitly disallowed from placing a block element (such as a <ul>) inside an inline element (such as an <s>).
In (X)HTML these are intrinsic to the schema definition; most of the prohibitions are specified in the DTD, and can be enforced by a validating parser.
For example: http://validator.w3.org/check?uri=http%3A%2F%2Fleuksman.com%2Fmisc%2Flist-ok... http://validator.w3.org/check?uri=http%3A%2F%2Fleuksman.com%2Fmisc%2Flist-ba...
CSS has concepts of "inline" and "block" objects which control how parts of the document are laid out. These are not necessarily inherent; you can define whether any particular object should be treated by setting its 'display' property at the appropriate place in the cascading style sheet.
This CSS property does not alter the (X)HTML schemas, but only the display layout.
-- brion vibber (brion @ pobox.com)
On Mon, May 22, 2006 at 02:00:45PM -0700, Brion Vibber wrote:
This CSS property does not alter the (X)HTML schemas, but only the display layout.
Fair 'nuff. I guess that's the relevant bit.
wikitech-l@lists.wikimedia.org