W3C home > Mailing lists > Public > public-css-testsuite@w3.org > July 2011

Re: [RC6] before-after-dynamic-attr-001 : ought to have a "may" flag

From: Patrick Garies <w3c.public-css-testsuite@patrick.garies.name>
Date: Mon, 04 Jul 2011 22:29:13 -0500
Message-ID: <4E128509.9010201@patrick.garies.name>
To: css21testsuite@gtalbot.org
CC: Public CSS test suite mailing list <public-css-testsuite@w3.org>
On 7/1/2011 7:45 PM, "GĂ©rard Talbot" wrote:
> http://test.csswg.org/suites/css2.1/20110323/html4/before-after-dynamic-attr-001.htm
>
> http://test.csswg.org/suites/css2.1/nightly-unstable/html4/before-after-dynamic-attr-001.htm
>
> Konqueror 4.6.4 fails this testcase because, as far as I can tell, it
> can not execute this DOM instruction
>
> line 22:   document.body.setAttribute("my-attr", "before");

Based upon my testing, Konqueror 4.5.4 (an older version) does indeed 
create/change the DTD-invalid attributes |my-attr| and |my-attr-2| in 
the DOM. The document is not dynamically updated to reflect this, 
however. I would call such behavior a bug in Konqueror.

The test I did was to append the following code to the |fixupDOM| 
function so that I could see what the new DOM looked like:

document.defaultView.alert(document.body.getAttribute("my-attr"));
document.defaultView.alert(document.body.getAttribute("my-attr-2"));
document.defaultView.alert(document.documentElement.innerHTML);

> If only, at least, the targeted attribute in the test was an existing
> one in the DTD to begin with ...

I agree that DTD-valid attributes should be used in this test.

However, replacing the invalid attributes with valid |class| and |id| 
attributes makes no difference. Konqueror still fails a revised test.
Received on Tuesday, 5 July 2011 11:56:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 5 July 2011 11:57:04 GMT