Text sample
Expected result: id=p1
References:
DOM 1 Core (2nd edition) attributes, DOM 2 Core
attributes
Firefox 2, Safari 2, Safari 3.0.2, Opera 9, Konqueror 3.5.8, Konqueror 4.3.1, NS 6.1, NS 6.2, NS 7.0, NS 7.2 and many browsers implement the attributes attribute as a NamedNodeMap object of specified attributes.
Update: This bug has been FIXED in Internet Explorer 8 beta 2 (build 6001.18241) released on August 28th 2008. Otherwise, Internet Explorer 8 beta 2 PASSES this specific and particular testcase.