pax_global_header00006660000000000000000000000064140402477260014520gustar00rootroot0000000000000052 comment=ef431a4bceaefb2d9248e79092e6c1a1a9420095 tyxml-4.5.0/000077500000000000000000000000001404024772600127035ustar00rootroot00000000000000tyxml-4.5.0/.github/000077500000000000000000000000001404024772600142435ustar00rootroot00000000000000tyxml-4.5.0/.github/workflows/000077500000000000000000000000001404024772600163005ustar00rootroot00000000000000tyxml-4.5.0/.github/workflows/workflow.yml000066400000000000000000000017731404024772600207050ustar00rootroot00000000000000name: Main workflow on: pull_request: push: schedule: # Prime the caches every Monday - cron: 0 1 * * MON jobs: build: strategy: fail-fast: false matrix: os: - ubuntu-latest ocaml-compiler: - 4.04.x - 4.05.x - 4.06.x - 4.07.x - 4.08.x - 4.09.x - 4.10.x include: - os: macos-latest ocaml-compiler: 4.10.x - os: windows-latest ocaml-compiler: 4.10.x runs-on: ${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@v2 - name: Use OCaml ${{ matrix.ocaml-compiler }} uses: avsm/setup-ocaml@v2 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} dune-cache: ${{ matrix.os == 'ubuntu-latest' }} opam-depext-flags: --with-test - run: opam install . --deps-only --with-test - run: opam exec -- make build - run: opam exec -- make test tyxml-4.5.0/.gitignore000066400000000000000000000002761404024772600147000ustar00rootroot00000000000000_build/ _opam/ .vscode/ **/*.mlpack **/*.mllib **/*.odocl **/*.docdir lib/META setup.data setup.log **/*~ setup.exe setup-dev.exe *.byte *.native _tests .merlin *.install docs/api/ _wikidoc tyxml-4.5.0/.jenkins.sh000066400000000000000000000006141404024772600147570ustar00rootroot00000000000000export ALCOTEST_SHOW_ERRORS=true opam pin add --no-action tyxml . opam pin add --no-action tyxml-ppx . opam install -t --deps-only tyxml opam install -t --verbose tyxml opam install -t --verbose tyxml-ppx do_build_doc () { make wikidoc cp -Rf doc/manual-wiki/*.wiki ${MANUAL_SRC_DIR} cp -Rf _build/tyxml-api.wikidocdir/*.wiki ${API_DIR} } do_remove () { opam remove --verbose tyxml } tyxml-4.5.0/.ocp-indent000066400000000000000000000000511404024772600147400ustar00rootroot00000000000000normal with=0 syntax=lwt mll max_indent=2tyxml-4.5.0/CHANGES.md000066400000000000000000000224661404024772600143070ustar00rootroot00000000000000# 4.5.0 * Move all the PPXs to ppxlib (#271, Initial code by Sonja @pitag-ha Heinze) * Add the `translate` attribute (#281 by Javier @jchavarri Chávarri) * Update allowed `inputmode`s (#279 by Joel @joelburget Burget) * Add the `picture` element (#263 by Stéphane @slegrand45 Legrand) # 4.4.0 * Add support for Reason's JSX syntax with a new `tyxml-jsx` package (#254 by Joris Giovannangeli and Gabriel Radanne with help from Ulrik Strid and Louis Roché) * Modernize the handling of toplevel printers for utop. (Gabriel Radanne) ## Elements and attributes * Add `allowfullscreen`, `allowpaymentrequest`, `referrerpolicy` attributes (#242 by Thibault Suzanne) * Allow `crossorigin` attribute for script element (#243 by Thibault Suzanne) * Greatly improved support of whitespaces in the PPX (#225 by Jules Aguillon) * Add preliminary support for ARIA attributes (#253 by Stéphane Legrand and Gabriel Radanne) * Add `template` element (#239 Stéphane Legrand) * Several bug fixes for types and PPX # 4.3.0 * Dunify This also removes all the deprecated libraries (`tyxml.syntax`, `tyxml.parser`) and removes the ocamlfind library `tyxml.ppx` in favor of `tyxml-ppx`. (#197 by Drup, Rudi Grinberg and Anton Bachin) * Add simplistic indentation for the Format-based printer (#187 by Drup) * Allow the ppx to be used for more exotic tyxml instances, such as reactive elements (#200 by Drup) * Add `Html.of_seq` and `Svg.of_seq`, which allow to easily import HTML parsed with markup in TyXML (#221 by Drup) ## Elements and attributes * Add Html.txt and Svg.txt as an alias for `pcdata` (#222 by Drup) * Add noopener link types (#198 by Jérôme Vouillon) * Slightly relax dt content type (#193 by Anton Bachin) * Add touch events (#211 by Malthe Borch) * Fix handling of figcaption in the PPX (#219 by Drup) # 4.2.0 * Compatibility with OCaml 4.6.0. * The ppx should now be compatible with driver-based workflows. In particular, jbuilder. * Future breakage: * The two camlp4-based packages (tyxml.syntax and tyxml.parser) are now deprecated and will be removed in the next major version. * Introduction of the tyxml-ppx ocamlfind package. Usage of the tyxml.ppx package is discouraged, and it will be removed in the next major version. * Various fixes in the Html_sigs.T module (contribution by Fabian Pijcke): * Fixed the map element function signature. * The elements functions now (almost) all make use of the types defined in Html_types, rather than redefining them. * Html_sigs.T.fieldset now takes [< legend] elt wrap as optional argument rather than legend elt wrap. * Add basic support for `aria-*` attributes (contribution by Armaël Guéneau) (see https://www.w3.org/TR/wai-aria-1.1/#states_and_properties) * Add support for the `role` attribute (contribution by Armaël Guéneau) (see https://www.w3.org/TR/role-attribute/) * Add support for the `minlength` form attribute (contribution by Armaël Guéneau) (See https://www.w3.org/TR/html5/forms.html#attr-input-minlength) # 4.1.0 * Uses uutf 1.0 (contribution by Daniel Bunzli) # 4.0.1 * Fix handling of comments in the ppx. * Fix printing of utf8 in attributes. * Properly flush ppx errors. This bug was causing some blank error messages. * Fix handling of whitespaces in `