In a plain XML document with the following DTD, CODE should work as an ID attribute, but it doesn't.
<!DOCTYPE ROOT [
<!ELEMENT CHILD2 (#PCDATA|GCHILD)*>
<!ATTLIST CHILD2 attr1 CDATA #IMPLIED
CODE ID #REQUIRED>
Created attachment 13480 [details]
I am not sure if we have a bug for dbaron's tests, but this issue is also illustrated in http://dbaron.org/css/test/xmlid from his test suite.
*** Bug 18605 has been marked as a duplicate of this bug. ***
I can also confirm this.
Major pain when trying to use getElementById() with arbitrary XML.
Mass moving XML DOM bugs to the "DOM" Component.