Aladdin - Scala Bugtracking
[#641] project: compiler priority: low category: bug
submitter assigned to status date submitted
Lex Burak fixed 2006-06-26 11:40:05.0
subject entities in XML and the .text method
code
<code> &amp; </code>.text
what happened
scala> <code> &amp; </code>.text
line4: java.lang.String =   
what expected It should have an ampersand in the text. This also happens with lt and gt . The entities just disappear.
[back to overview]
Changes of this bug report
Lex  edited on  2006-06-26 11:40:49.0
Lex  edited on  2006-06-26 11:41:18.0
Lex  edited on  2006-06-26 11:41:27.0
Lex  edited on  2006-06-26 11:42:00.0
PS -- this bug was difficult to enter into the bugtracker, which is treating input as XML (X-HTML I guess)...
Burak  edited on  2006-06-26 14:12:37.0
yeah, problem was the method EntityRef::text which always returned the empty string. In general, we can't resolve entities, but at least for the xml predefined entities it does the right thing.
Burak  edited on  2006-06-26 14:12:48.0