W3C home > Mailing lists > Public > www-html@w3.org > April 2003

Re: lines and XHTML2

From: Herr Christian Wolfgang Hujer <Christian.Hujer@itcqis.com>
Date: Sat, 19 Apr 2003 14:37:56 +0200
To: www-html@w3.org
Message-Id: <200304191437.58302.Christian.Hujer@itcqis.com>

Hash: SHA1


Am Mittwoch, 16. April 2003 20:05 schrieb Ernest Cline:
> The main debate over <l> is that we have those who feel that <l>...</l>
> is likely to cause too much markup as to be practical, and those that
> feel that there needs to be some conatining element that represents
> that here is data where the line content is important.
> Might I suggest as a compromise, an element similar to <pre> called
> <lines>?  <lines> would indicate that the linefeed characters are
> significant as they break the content into lines. As far as visual
> presentation is concerned <lines> would be the same as <div
> class="lines"> with the following CSS3:
>   .lines {white-space: pre-line}
> This would serve all needs except for those cases where markup is used
> on individual lines for other purposes such as to facilitate the
> styling or scripting of individual lines. Such cases would in my
> opinion be rare and could be indicated via other markup such as:
> <lines><span>Line 1</span>
> <span>Line 2
>       Line 3</span>
>       Line        4
> <span>Line 5</span></lines>
> For which a default vusual rendering would be:
> Line 1
> Line 2
> Line 3
> Line 4
> Line 5

I'm against it.
In the way you described I can't do ...
<p class="code">
    <l>public class Hello {</l>
    <l>    public static void main(String[] args) {</l>
    <l>        System.out.println("hello, world");</l>
    <l>    }</l>

... and combine that with aotumatic numbering using CSS:

p.code {
p.code > l:before {

I'm strictly against changing the <l/> element the way it is.
I propose some clearification about that an <l/> element may itself be wrapped 
across multiple lines if the width of the viewbox is too small to render the 
<l/> element's contents in a single line.
And: if <l/> is defined as a line break before and after and it is part of the 
inline content model, one still might abuse <l/> in a way that it's just 
replacing <br/>:
    Some text <l/> Some text
Would then break at <l/>. I want to state that I'd consider that somewhat 
abuse of <l/>. But that's still more convenient than adding Inline to the 
content model of <br/>:
    <br>Some text</br>
    <br>Some text</br>

- -- 
Christian Wolfgang Hujer
Geschäftsführender Gesellschafter
Telefon: +49  (0)89  27 37 04 37
Telefax: +49  (0)89  27 37 04 39
E-Mail: Christian.Hujer@itcqis.com
WWW: http://www.itcqis.com/
Version: GnuPG v1.0.7 (GNU/Linux)

Received on Saturday, 19 April 2003 08:39:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:03 UTC