-
Notifications
You must be signed in to change notification settings - Fork 21
Contradiction in Language Spec w.r.t. XML Processing Instructions #5109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5109?orig=1 |
@jsalvata said (edited on Nov 2, 2011 11:52:56 PM UTC): |
@som-snytt said: |
Agree, CDATA and PI are accepted by the compiler:
Declarations are not, though:
|
My comment from 2015 was from when I fixed the related issue #3368 for CDATA support; I think it was supposed to remind me to update the spec, but I forgot. Or possibly, I felt I couldn't top "child support." |
I read your comment twice, earlier, but didn't catch the humor until now. The joke holds up, though. |
The Scala Language Specification v. 2.9, in section 10.1, 3rd paragraph (towards the end of page 131) reads:
"[...] Scala does not support [...], CDATA sections or processing instructions. [...]"
But the syntax section following this paragraph contains a production XMLContent using non-terminals "CDSect" and "PI", which refer to CDATA sections and processing instructions respectively.
Indeed, both CDATA and Processing Instructions are supported by the 2.9 versions of the language:
The text was updated successfully, but these errors were encountered: