cpp-html icon indicating copy to clipboard operation
cpp-html copied to clipboard

Doesn't work as HTML

Open jyasskin opened this issue 7 years ago • 3 comments
trafficstars

I copied the content of hello.html.cpp into an HTML file, and it didn't render well in Chrome 67:

rendered hello.html.cpp

I was expecting:

expected rendering

Please fix. You may need some changes to https://github.com/whatwg/html.

jyasskin avatar Apr 02 '18 16:04 jyasskin

Hmm that is indeed bothersome... Maybe HTML needs more Unicode support? Or we could use Polymer... Gotta think about this.

jfbastien avatar Apr 02 '18 16:04 jfbastien

Oh did you try it in a browser other than Chrome? I get the following in Safari:

screen shot 2018-04-02 at 09 14 16

jfbastien avatar Apr 02 '18 16:04 jfbastien

I did manually strip the #include "cpp.html.h", assuming that was just to enable the mode where HTML works.

The remaining difference in Chrome vs Safari is clearly a bug in one of them or the HTML specification.

jyasskin avatar Apr 02 '18 16:04 jyasskin