ecma262 icon indicating copy to clipboard operation
ecma262 copied to clipboard

Allow non-HTML-encoded entities

Open ljharb opened this issue 9 years ago • 8 comments

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

ljharb avatar Feb 23 '16 17:02 ljharb

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.

bterlson avatar Feb 24 '16 19:02 bterlson

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?

ljharb avatar Feb 24 '16 19:02 ljharb

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

bterlson avatar Feb 24 '16 19:02 bterlson

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

musgravejw avatar Apr 19 '18 18:04 musgravejw

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

mathiasbynens avatar Apr 19 '18 19:04 mathiasbynens

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

ljharb avatar Apr 19 '18 20:04 ljharb

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)

mathiasbynens avatar Apr 19 '18 20:04 mathiasbynens

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).

bakkot avatar Aug 17 '22 22:08 bakkot

Fixed by #2901.

michaelficarra avatar Dec 13 '22 15:12 michaelficarra