teact icon indicating copy to clipboard operation
teact copied to clipboard

ie tag error

Open jahbini opened this issue 10 years ago • 3 comments

the ie tag is not configured properly and fails during render.

The doctype tag is also absent

jahbini avatar Feb 10 '16 06:02 jahbini

And the raw tag from teacup is also missing -- it's like the text tag, but does not escape html elements

jahbini avatar Feb 10 '16 06:02 jahbini

@jahbini thanks for the heads up! I haven't seen many folks using React to bootstrap their whole page, meta tags and all, so I didn't prioritize ie and doctype tags, but I'd happily merge a PR for 'em.

The raw tag is a little trickier as React does its own escaping. You can use React's dangerouslySetInnerHTML today. A raw tag would likely need to make assumptions about what type of tag (div or span for example) to wrap the raw content with. Not opposed, just haven't needed it yet.

hurrymaplelad avatar Feb 22 '16 00:02 hurrymaplelad

I wanted to use React, but can't stand the bloat, so I adapted Teact to mithril and added back the original rendering scheme.

It now has ie, doctype and render, renderable and tag, too. And renders into three different DOM schemes: React or Mithril virtual DOM and HTML text. Server or client side. Check out http://github.com/jahbini/halvalla

jahbini avatar Oct 10 '17 00:10 jahbini