WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
12971
An ID attribute declared in a DTD internal subset is not treated as such
https://bugs.webkit.org/show_bug.cgi?id=12971
Summary
An ID attribute declared in a DTD internal subset is not treated as such
Alexey Proskuryakov
Reported
2007-03-05 11:42:27 PST
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> ]>
Attachments
test case
(1021 bytes, text/html)
2007-03-05 11:43 PST
,
Alexey Proskuryakov
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2007-03-05 11:43:01 PST
Created
attachment 13480
[details]
test case
Sam Weinig
Comment 2
2007-03-05 15:12:24 PST
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.
Alexey Proskuryakov
Comment 3
2010-09-22 13:36:36 PDT
***
Bug 18605
has been marked as a duplicate of this bug. ***
William J. Edney
Comment 4
2010-10-28 15:28:08 PDT
I can also confirm this. Major pain when trying to use getElementById() with arbitrary XML. Cheers, - Bill
Lucas Forschler
Comment 5
2019-02-06 09:04:13 PST
Mass moving XML DOM bugs to the "DOM" Component.
Ahmad Saleem
Comment 6
2022-08-02 04:14:22 PDT
I am not sure on web-spec direction but in attached test case, all browsers (Chrome Canary 106, Firefox Nightly 105 and Safari 15.6) are showing 'FAILURE', while similarly in test case from
Comment 02
, there is no color grading on the test case and all browsers are matching with each other. Can someone mark this bug accordingly? Whether it would be "RESOLVED WONTFIX" due to web-spec change or it would be RESOLVED LATER or RESOLVED CONFIGURATION CHANGED. Thanks!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug