Skip to content
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

Allow non-HTML-encoded entities #404

Closed
ljharb opened this issue Feb 23, 2016 · 9 comments
Closed

Allow non-HTML-encoded entities #404

ljharb opened this issue Feb 23, 2016 · 9 comments

Comments

@ljharb
Copy link
Member

ljharb commented Feb 23, 2016

Things like &lt; would be much nicer to work with as < in spec.html - is this something ecmarkup/ecmarkdown could handle for us?

@bterlson
Copy link
Member

Spec.html should be utf-8 encoded and html entities should only be used when needed. Eg. a < b should be fine, although I could be wrong about that. I plan on doing this work along with the big Ecmarkdown 3.0 conversion post-snapshot.

@ljharb
Copy link
Member Author

ljharb commented Feb 24, 2016

awesome - we might want to set up a travis task to specifically lint for all the things we don't want included in spec.html - like html entities, or internal slots with non-uppercase code points, etc?

@bterlson
Copy link
Member

Sure, I would love for npm test to actually do something useful ;)

@musgravejw
Copy link
Contributor

Trying to follow up on this thread, would this issue require tests and/or a feature in ecmarkdown?

@mathiasbynens
Copy link
Member

a < b works but is not valid HTML. a > b OTOH is valid.

@ljharb
Copy link
Member Author

ljharb commented Apr 19, 2018

Sure, but ecmarkup input isn’t valid html already :-)

@mathiasbynens
Copy link
Member

Right. I was pointing out that the case for which ecmarkup doesn’t have to do anything special is a > b rather than a < b. (re: @bterlson’s comment)

@bakkot
Copy link
Contributor

bakkot commented Aug 17, 2022

Per editor call today, now that we have an auto-formatter, we'll have the formatter translate from HTML entity style (which some people prefer to write) to actual code points (which most people prefer to read).

So the editorial convention will be that spec.html has actual code points (except for &lt; and &amp;), but people won't need to remember the rules (as long as they remember to npm run format).

@michaelficarra
Copy link
Member

Fixed by #2901.

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

No branches or pull requests

6 participants