tyxml icon indicating copy to clipboard operation
tyxml copied to clipboard

Build valid HTML and SVG documents

Results 63 tyxml issues
Sort by recently updated
recently updated
newest added

The following code renders differently in the browser whether the `indent` option is enabled or not: ```html some text here . and here ``` A line break is inserted between...

Given the following code: ```reasonml open Tyxml; module SearchBar = { let createElement = (~query="", ()) => Html.txt(query) }; }; let page = (~query=?, ()) => { ; }; ```...

Sometimes in tyxml apps one receives a pre-formatted string that is rendered with `white-space: pre;`. At the moment, the only way to handle this case is by disabling indentation for...

This strengthen a bit the typing for dt, address and header elements that are not supposed to be nested. In particular, this was allowed by tyxml (where it shouldn't): ```ocaml...

If I do the following ```reason ...contents ``` I get the warning of "unexpected optional jsx attribute" while `id` is an optional argument on `h1`. Would be great to have...

enhancement
syntax extension

Right now, `Svg` and `Html` functors takes the same `XML` parameter, but their respective elements should not be instantiated in the same namespace (svg elements "live" in http://www.w3.org/2000/svg). The current...

It seems JSX ppx renames `className` attribute to `class` for elements generated from uppercase components. This results in the `createElement` application being passed a `~class` argument, which doesn't make sense...

test.ml: ``` open Tyxml.Html let zz = p [ a [ txt "a" ] ] ``` dune-project: ``` (lang dune 2.5) (implicit_transitive_deps false) ``` dune: ``` (executable (name test) (libraries...

The idea is that `children` is just a prop. In the `jsx`-ppx the children type is fixed, which is fine for normal elements, but it allows less flexibility for custom...

- handle `type` in scripts - [web components](https://developer.mozilla.org/en-US/docs/Web/Web_Components) support? `is` attribute everywhere, and custom kebab-case names