Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
I think err:XS0044 is doing too much work #556
At the moment, almost any syntactic error raises XS0044. In particular, an element that occurs where it isn't allowed and a non-whitespace text node that appears where it isn't allowed both raise this error.
I propose that we create a new error for "text isn't allowed here". That's really quite different from "this element isn't allowed here".
Have a look at XS0037:
I think that would do the work in most cases, but I am definitely in favor of more specific static errors which is in my view a big advantage for developers.