Skip to content

JSXTextCharacter may not be '>' or '}' either #2

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

Closed
wants to merge 1 commit into from
Closed

JSXTextCharacter may not be '>' or '}' either #2

wants to merge 1 commit into from

Conversation

syranide
Copy link
Contributor

@sebmarkbage
Copy link
Contributor

Yea, can you separate the issues? :) I foresee there being more discussion on each individual part and then we can close out a whole thread individually.

@syranide
Copy link
Contributor Author

Done, cleaned up this PR.

@sebmarkbage sebmarkbage force-pushed the master branch 3 times, most recently from bbb18dc to ae18541 Compare September 4, 2014 18:23
@sebmarkbage
Copy link
Contributor

I guess this makes sense but I'd like to get input and commitment to change implementations from @RReverser and @jeffmo before pulling this in.

@RReverser
Copy link
Contributor

@sebmarkbage It's no problem to change, but from @syranide's PR into esprima it looks like this also removes elements-as-attributes which conflicts with feature that we two agree on.

@syranide, is it possible to introduce these rule changes without dropping that feature (at least until further separate discussions)?

@syranide
Copy link
Contributor Author

syranide commented Sep 4, 2014

@RReverser Hmm? This shouldn't affect elements-as-attributes, this only rejects orphaned > and } (EDIT) in text.

@RReverser
Copy link
Contributor

@syranide I'm talking about facebookarchive/esprima#36 that you mentioned in first post in this thread. As far as I can see from https://github.com/facebook/esprima/pull/36/files, in that PR you also removed element-as-attr-value from fbtest.js, so I wondered if that appeared in the same commit because those are linked issues or was there any other reason.

@syranide
Copy link
Contributor Author

syranide commented Sep 5, 2014

@RReverser Aha, now I see what you mean. No that is not because I "broke" elements-as-attribute but simply because that test includes an orphaned > and I just assumed that it's what it was for. I've restored the test and removed the orphaned >.

<LeftRight left=<a /> right=<b>monkeys /**>** gorillas</b> />

@sebmarkbage
Copy link
Contributor

In the standards world, there's another level of stability when at least two independent implementations have implemented this.

As a guideline, we could make changes to the spec once at least two implementations have implemented the feature in their parser. What do you guys think? That shows commitment to support the feature.

@RReverser
Copy link
Contributor

@sebmarkbage Sure, it's not a problem. Btw, } was already an unsupported part of JSXText in my implementation (due to implementation specifics), so just need to add >. Will do a bit later.

@sebmarkbage
Copy link
Contributor

Cool. Rebase and I'll pull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants