W3C home > Mailing lists > Public > public-webapps-testsuite@w3.org > August 2012

Are there tests for the getAttribute returning null change?

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Sat, 25 Aug 2012 00:04:08 +0000
To: "public-webapps-testsuite@w3.org" <public-webapps-testsuite@w3.org>
Message-ID: <B4AE8F4E86E26C47AC407D49872F6F9F2DD426A4@BY2PRD0510MB354.namprd05.prod.outlook.com>
In DOM1 through DOM3, getAttribute was specced to return an empty string for nonexistent attributes [1][2], contrary to web reality. This was fixed in DOM4, where it now returns null [3].

I am trying to update the jsdom project in light of this change [4], but we can't seem to find any tests related to this that we could use to validate our implementation.

Am I looking in the right place, at [5]? Would it be worthwhile contributing such tests if they don't exist, or should I assume it's somewhere in the vastness of the unapproved directory, and it will get moved eventually?

[1]: http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-666EE0F9
[2]: http://annevankesteren.nl/2005/12/null
[3]: http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-element-getattribute
[4]: https://github.com/tmpvar/jsdom/issues/465
[5]: http://w3c-test.org/html/tests/approved/
Received on Saturday, 25 August 2012 00:04:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 22 April 2014 14:15:59 UTC