W3C home > Mailing lists > Public > www-amaya-dev@w3.org > April 2005

Amaya looks for attributes named "id"?

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Wed, 20 Apr 2005 13:39:09 -0400
To: www-amaya-dev@w3.org
Message-id: <8764yhqreq.fsf@nwalsh.com>
Given this CSS stylesheet, test.css:

title { font-size: large;
        font-weight: bold;
      }
#foo  { color: red; }

This document displays correctly in Amaya (i.e., the second paragraph
is red):

<?xml version='1.0'?>
<!DOCTYPE doc [
<!ATTLIST p id ID #IMPLIED>
]>
<?xml-stylesheet href="test.css" type="text/css"?>
<doc>
<title>Some Title</title>
<p>This is a paragraph.</p>
<p id="foo">This is the foo paragraph.</p>
<p>This is a paragraph.</p>
</doc>

But I was somewhat surprised that this one did not display correctly:

<?xml version='1.0'?>
<!DOCTYPE doc [
<!ATTLIST p myid ID #IMPLIED>
]>
<?xml-stylesheet href="test.css" type="text/css"?>
<doc>
<title>Some Title</title>
<p>This is a paragraph.</p>
<p myid="foo">This is the foo paragraph.</p>
<p>This is a paragraph.</p>
</doc>

Furthermore, the second paragraph in this document was also red, which
I think is an error:

<?xml version='1.0'?>
<?xml-stylesheet href="test.css" type="text/css"?>
<doc>
<title>Some Title</title>
<p>This is a paragraph.</p>
<p id="foo">This is the foo paragraph.</p>
<p>This is a paragraph.</p>
</doc>

Are these known bugs (or features?)

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc.
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

Received on Wednesday, 20 April 2005 17:39:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:31:07 UTC