W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2007

[whatwg] Pre element question

From: Allan Sandfeld Jensen <kde@carewolf.com>
Date: Sun, 21 Jan 2007 12:00:51 +0100
Message-ID: <200701211200.51884.kde@carewolf.com>
On Saturday 20 January 2007 01:08, Ian Hickson wrote:
>
> In HTML5, we're dropping that requirement, since everyone ignores it.
> However, we will, as you point out, have to introduce a special behaviour
> for a newline at the start of a <pre> element. IE actually does it for
> more than just the <pre> element (e.g. it does it for <p>, though not
> <span>) but compatibility with the Web only seems to require it for <pre>
> since that's all that the other browsers do it for.
>
Would it be inconceivable to let <pre> parse like any other elements, and then 
somehow drop any initial newline during the rendering?

`Allan
Received on Sunday, 21 January 2007 03:00:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC