W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2004

Span element nests unnecessarily

From: Leon Stringer <leon.stringer@ntlworld.com>
Date: Mon, 30 Aug 2004 10:10:08 +0000
Message-ID: <4132FDB3.5010309@ntlworld.com>
To: www-amaya@w3.org




Hi,

I have a heading and paragraph and I want to apply a common style. So I 
open the source view and add a span element containing the heading and 
paragraph:

    <span style="text-align: center">
    <h1>Heading 1</h1>

    <p>Paragraph</p>
    </span>

However, if I edit the document and then save it and re-check the 
source, Amaya has changed this to:

    <h1><span style="text-align: center">Heading 1</span></h1>

    <p><span style="text-align: center">Paragraph</span></p>

Surely this is wrong? Span is supposed to contain multiple elements; now 
if I want to change the style I have to update every opening span tag.

(As an aside the above CSS doesn't work in Amaya).

Is this not supported or am I using Amaya incorrectly?

Thanks,

Leon...
Received on Monday, 30 August 2004 14:54:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:45 UTC