You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jsalvata said:
I've just noticed that such entity references, while legal in XML, are not acceptable in Scala according to the Scala Language Specification 2.9 (24 may 2011): section 10.1 of the SLR, unlike the XML specification, defines AttValue to include characters and character references, but not entity references.
If the SLR is considered correct, the expected result of the code above would be a compilation error. But then there would be no reason for an attribute value to be a NodeSeq -- a simple String would do, just like in SAX2. So I believe it is actually a documentation bug.
The name of the entity ("oacute" in this example) is lost:
Note this is different from behaviour in Element content:
The text was updated successfully, but these errors were encountered: