public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug libgcj/27262] New: org.w3c.dom.Element.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance. @ 2006-04-22 19:58 kalle at enrogue dot com 2006-04-22 20:02 ` [Bug libgcj/27262] " kalle at enrogue dot com ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: kalle at enrogue dot com @ 2006-04-22 19:58 UTC (permalink / raw) To: java-prs Parsing a Document instance from file, setting the "id" attribute of an element on that instance to some value, and then flagging the "id" attribute for that element to be the IdAttribute using (Element).setIdAttribute("id", true) does not seem to work. Retrieving that very same element via getElementById on the Document instance will return null, where one would expect the element. [attaching tarball demonstrating this in a simple java script (67 lines)] -- Summary: org.w3c.dom.Element.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance. Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kalle at enrogue dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27262 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/27262] org.w3c.dom.Element.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance. 2006-04-22 19:58 [Bug libgcj/27262] New: org.w3c.dom.Element.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance kalle at enrogue dot com @ 2006-04-22 20:02 ` kalle at enrogue dot com 2006-04-23 8:19 ` [Bug classpath/27262] org.w3c.dom.Document.getElementById " mark at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: kalle at enrogue dot com @ 2006-04-22 20:02 UTC (permalink / raw) To: java-prs ------- Comment #1 from kalle at enrogue dot com 2006-04-22 20:02 ------- Created an attachment (id=11316) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11316&action=view) Demonstrates the bug. This attachment contains: - CREATION (a bash-script which contains the 2 commands used in generating binary) - simple (binary result) - simple.class (class result) - simple.java (source) - simplemain.i - simplemain.o - simplemain.s - simple.o - simple.s - simple.xhtml (required supplemental file (1 line big)) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27262 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug classpath/27262] org.w3c.dom.Document.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance. 2006-04-22 19:58 [Bug libgcj/27262] New: org.w3c.dom.Element.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance kalle at enrogue dot com 2006-04-22 20:02 ` [Bug libgcj/27262] " kalle at enrogue dot com @ 2006-04-23 8:19 ` mark at gcc dot gnu dot org 2006-04-24 15:59 ` dog at gnu dot org 2006-04-24 16:05 ` cvs-commit at developer dot classpath dot org 3 siblings, 0 replies; 5+ messages in thread From: mark at gcc dot gnu dot org @ 2006-04-23 8:19 UTC (permalink / raw) To: java-prs ------- Comment #2 from mark at gcc dot gnu dot org 2006-04-23 08:19 ------- Can you take a look at this bug report chris? -- mark at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |dog at gnu dot org |dot org | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27262 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug classpath/27262] org.w3c.dom.Document.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance. 2006-04-22 19:58 [Bug libgcj/27262] New: org.w3c.dom.Element.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance kalle at enrogue dot com 2006-04-22 20:02 ` [Bug libgcj/27262] " kalle at enrogue dot com 2006-04-23 8:19 ` [Bug classpath/27262] org.w3c.dom.Document.getElementById " mark at gcc dot gnu dot org @ 2006-04-24 15:59 ` dog at gnu dot org 2006-04-24 16:05 ` cvs-commit at developer dot classpath dot org 3 siblings, 0 replies; 5+ messages in thread From: dog at gnu dot org @ 2006-04-24 15:59 UTC (permalink / raw) To: java-prs ------- Comment #3 from dog at gnu dot org 2006-04-24 15:59 ------- This would not work unless a doctype was present. Now fixed. -- dog at gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED Target Milestone|--- |0.20 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27262 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug classpath/27262] org.w3c.dom.Document.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance. 2006-04-22 19:58 [Bug libgcj/27262] New: org.w3c.dom.Element.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance kalle at enrogue dot com ` (2 preceding siblings ...) 2006-04-24 15:59 ` dog at gnu dot org @ 2006-04-24 16:05 ` cvs-commit at developer dot classpath dot org 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at developer dot classpath dot org @ 2006-04-24 16:05 UTC (permalink / raw) To: java-prs ------- Comment #4 from cvs-commit at developer dot classpath dot org 2006-04-24 16:05 ------- Subject: Bug 27262 CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Chris Burdess <dog@savannah.gnu.org> 06/04/24 15:58:22 Modified files: . : ChangeLog gnu/xml/dom : DomDocument.java Log message: 2006-04-24 Chris Burdess <dog@gnu.org> Fixes PR 27262 * gnu/xml/dom/DomDocument.java: getElementById returns user-defined ID attributes when no doctype exists. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.7199&tr2=1.7200&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/gnu/xml/dom/DomDocument.java.diff?tr1=1.11&tr2=1.12&r1=text&r2=text -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27262 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-24 16:05 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-04-22 19:58 [Bug libgcj/27262] New: org.w3c.dom.Element.getElementById returns null after manual (setIdAttribute) identifying of element in Document instance kalle at enrogue dot com 2006-04-22 20:02 ` [Bug libgcj/27262] " kalle at enrogue dot com 2006-04-23 8:19 ` [Bug classpath/27262] org.w3c.dom.Document.getElementById " mark at gcc dot gnu dot org 2006-04-24 15:59 ` dog at gnu dot org 2006-04-24 16:05 ` cvs-commit at developer dot classpath dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).