zuhtml package
==============

Copyright (c) 2026 Pedro Baltazar.
Licensed under the MIT license; see DESCRIPTION and the file LICENSE for
license and copyright details. The MIT license covers only the code written
for this package: everything outside src/vendor/.

Bundled third-party code
========================

src/vendor/gumbo/
-----------------

This directory vendors the parser library of the Gumbo HTML5 parser,
version 0.14.0, from the maintained fork at
https://codeberg.org/gumbo-parser/gumbo-parser. The release, the commit it
resolves to, the archive checksum and the import date are recorded in
src/vendor/PROVENANCE.

  Copyright 2010 Google Inc. All Rights Reserved.
  Copyright 2011 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use these files except in compliance with the License. You may obtain a copy
of the License at

  https://www.apache.org/licenses/LICENSE-2.0

The full licence text is preserved at src/vendor/gumbo/COPYING. Upstream
ships no NOTICE file. The Apache License, Version 2.0 and the package's own
MIT license are separate and apply to their respective files; the MIT
license does not cover the vendored Gumbo sources.

The files are upstream's, with a short series of local patches applied:
error.c, error.h, gumbo.h and parser.c are modified, and each says so under
its licence header. The patches are listed in src/vendor/PROVENANCE.

The copyright notices above are the only ones found in the vendored file
headers. Later changes by the fork's maintainers carry no separate notice.

Bundled files with separate authorship notices
==============================================

src/vendor/gumbo/utf8.c
-----------------------

Contains a DFA-based UTF-8 decoder by Bjoern Hoehrmann, under the MIT
license. The notice is reproduced in the file itself:

  Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>

  Permission is hereby granted, free of charge, to any person obtaining a
  copy of this software and associated documentation files (the
  "Software"), to deal in the Software without restriction, including
  without limitation the rights to use, copy, modify, merge, publish,
  distribute, sublicense, and/or sell copies of the Software, and to permit
  persons to whom the Software is furnished to do so, subject to the
  following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

Test fixtures
=============

tests/testthat/fixtures/tree-construction.dat
---------------------------------------------

Twelve html5lib tree-construction test cases, copied unchanged from
web-platform-tests (https://github.com/web-platform-tests/wpt,
html/syntax/parsing/resources/) by way of the Gumbo 0.14.0 release, which
ships them. They are used only by the test suite.

  Copyright (c) web-platform-tests contributors

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are
  met:

  1. Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its
     contributors may be used to endorse or promote products derived from
     this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

tests/testthat/fixtures/realworld/pandas/
------------------------------------------

Three HTML files from pandas (https://github.com/pandas-dev/pandas,
pandas/tests/io/data/html), used only by the test suite. banklist.html and
spam.html reproduce US government works (FDIC and USDA data), which are in
the public domain; valid_markup.html is a generated table.

  Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry,
  Inc. and PyData Development Team
  Copyright (c) 2011-2026, Open source contributors.

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.
  * Neither the name of the copyright holder nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

tests/testthat/fixtures/realworld/readability/
-----------------------------------------------

Eleven synthetic test pages (placeholder text written by the project) and
the output Readability expects for each, from Mozilla Readability
(https://github.com/mozilla/readability, test/test-pages), used only by
the test suite.

  Copyright (c) 2010 Arc90 Inc
  Licensed under the Apache License, Version 2.0; the full text is in
  src/vendor/gumbo/COPYING. The files are unmodified.
