- 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>
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