Path: blob/main/src/vs/base/browser/dompurify/dompurify.license.txt
3294 views
DOMPurify1Copyright 2015 Mario Heiderich23DOMPurify is free software; you can redistribute it and/or modify it under the4terms of either:56a) the Apache License Version 2.0, or7b) the Mozilla Public License Version 2.089-----------------------------------------------------------------------------1011Licensed under the Apache License, Version 2.0 (the "License");12you may not use this file except in compliance with the License.13You may obtain a copy of the License at1415http://www.apache.org/licenses/LICENSE-2.01617Unless required by applicable law or agreed to in writing, software18distributed under the License is distributed on an "AS IS" BASIS,19WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.20See the License for the specific language governing permissions and21limitations under the License.2223-----------------------------------------------------------------------------24Mozilla Public License, version 2.025261. Definitions27281.1. “Contributor”2930means each individual or legal entity that creates, contributes to the31creation of, or owns Covered Software.32331.2. “Contributor Version”3435means the combination of the Contributions of others (if any) used by a36Contributor and that particular Contributor’s Contribution.37381.3. “Contribution”3940means Covered Software of a particular Contributor.41421.4. “Covered Software”4344means Source Code Form to which the initial Contributor has attached the45notice in Exhibit A, the Executable Form of such Source Code Form, and46Modifications of such Source Code Form, in each case including portions47thereof.48491.5. “Incompatible With Secondary Licenses”50means5152a. that the initial Contributor has attached the notice described in53Exhibit B to the Covered Software; or5455b. that the Covered Software was made available under the terms of version561.1 or earlier of the License, but not also under the terms of a57Secondary License.58591.6. “Executable Form”6061means any form of the work other than Source Code Form.62631.7. “Larger Work”6465means a work that combines Covered Software with other material, in a separate66file or files, that is not Covered Software.67681.8. “License”6970means this document.71721.9. “Licensable”7374means having the right to grant, to the maximum extent possible, whether at the75time of the initial grant or subsequently, any and all of the rights conveyed by76this License.77781.10. “Modifications”7980means any of the following:8182a. any file in Source Code Form that results from an addition to, deletion83from, or modification of the contents of Covered Software; or8485b. any new file in Source Code Form that contains any Covered Software.86871.11. “Patent Claims” of a Contributor8889means any patent claim(s), including without limitation, method, process,90and apparatus claims, in any patent Licensable by such Contributor that91would be infringed, but for the grant of the License, by the making,92using, selling, offering for sale, having made, import, or transfer of93either its Contributions or its Contributor Version.94951.12. “Secondary License”9697means either the GNU General Public License, Version 2.0, the GNU Lesser98General Public License, Version 2.1, the GNU Affero General Public99License, Version 3.0, or any later versions of those licenses.1001011.13. “Source Code Form”102103means the form of the work preferred for making modifications.1041051.14. “You” (or “Your”)106107means an individual or a legal entity exercising rights under this108License. For legal entities, “You” includes any entity that controls, is109controlled by, or is under common control with You. For purposes of this110definition, “control” means (a) the power, direct or indirect, to cause111the direction or management of such entity, whether by contract or112otherwise, or (b) ownership of more than fifty percent (50%) of the113outstanding shares or beneficial ownership of such entity.1141151162. License Grants and Conditions1171182.1. Grants119120Each Contributor hereby grants You a world-wide, royalty-free,121non-exclusive license:122123a. under intellectual property rights (other than patent or trademark)124Licensable by such Contributor to use, reproduce, make available,125modify, display, perform, distribute, and otherwise exploit its126Contributions, either on an unmodified basis, with Modifications, or as127part of a Larger Work; and128129b. under Patent Claims of such Contributor to make, use, sell, offer for130sale, have made, import, and otherwise transfer either its Contributions131or its Contributor Version.1321332.2. Effective Date134135The licenses granted in Section 2.1 with respect to any Contribution become136effective for each Contribution on the date the Contributor first distributes137such Contribution.1381392.3. Limitations on Grant Scope140141The licenses granted in this Section 2 are the only rights granted under this142License. No additional rights or licenses will be implied from the distribution143or licensing of Covered Software under this License. Notwithstanding Section1442.1(b) above, no patent license is granted by a Contributor:145146a. for any code that a Contributor has removed from Covered Software; or147148b. for infringements caused by: (i) Your and any other third party’s149modifications of Covered Software, or (ii) the combination of its150Contributions with other software (except as part of its Contributor151Version); or152153c. under Patent Claims infringed by Covered Software in the absence of its154Contributions.155156This License does not grant any rights in the trademarks, service marks, or157logos of any Contributor (except as may be necessary to comply with the158notice requirements in Section 3.4).1591602.4. Subsequent Licenses161162No Contributor makes additional grants as a result of Your choice to163distribute the Covered Software under a subsequent version of this License164(see Section 10.2) or under the terms of a Secondary License (if permitted165under the terms of Section 3.3).1661672.5. Representation168169Each Contributor represents that the Contributor believes its Contributions170are its original creation(s) or it has sufficient rights to grant the171rights to its Contributions conveyed by this License.1721732.6. Fair Use174175This License is not intended to limit any rights You have under applicable176copyright doctrines of fair use, fair dealing, or other equivalents.1771782.7. Conditions179180Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in181Section 2.1.1821831843. Responsibilities1851863.1. Distribution of Source Form187188All distribution of Covered Software in Source Code Form, including any189Modifications that You create or to which You contribute, must be under the190terms of this License. You must inform recipients that the Source Code Form191of the Covered Software is governed by the terms of this License, and how192they can obtain a copy of this License. You may not attempt to alter or193restrict the recipients’ rights in the Source Code Form.1941953.2. Distribution of Executable Form196197If You distribute Covered Software in Executable Form then:198199a. such Covered Software must also be made available in Source Code Form,200as described in Section 3.1, and You must inform recipients of the201Executable Form how they can obtain a copy of such Source Code Form by202reasonable means in a timely manner, at a charge no more than the cost203of distribution to the recipient; and204205b. You may distribute such Executable Form under the terms of this License,206or sublicense it under different terms, provided that the license for207the Executable Form does not attempt to limit or alter the recipients’208rights in the Source Code Form under this License.2092103.3. Distribution of a Larger Work211212You may create and distribute a Larger Work under terms of Your choice,213provided that You also comply with the requirements of this License for the214Covered Software. If the Larger Work is a combination of Covered Software215with a work governed by one or more Secondary Licenses, and the Covered216Software is not Incompatible With Secondary Licenses, this License permits217You to additionally distribute such Covered Software under the terms of218such Secondary License(s), so that the recipient of the Larger Work may, at219their option, further distribute the Covered Software under the terms of220either this License or such Secondary License(s).2212223.4. Notices223224You may not remove or alter the substance of any license notices (including225copyright notices, patent notices, disclaimers of warranty, or limitations226of liability) contained within the Source Code Form of the Covered227Software, except that You may alter any license notices to the extent228required to remedy known factual inaccuracies.2292303.5. Application of Additional Terms231232You may choose to offer, and to charge a fee for, warranty, support,233indemnity or liability obligations to one or more recipients of Covered234Software. However, You may do so only on Your own behalf, and not on behalf235of any Contributor. You must make it absolutely clear that any such236warranty, support, indemnity, or liability obligation is offered by You237alone, and You hereby agree to indemnify every Contributor for any238liability incurred by such Contributor as a result of warranty, support,239indemnity or liability terms You offer. You may include additional240disclaimers of warranty and limitations of liability specific to any241jurisdiction.2422434. Inability to Comply Due to Statute or Regulation244245If it is impossible for You to comply with any of the terms of this License246with respect to some or all of the Covered Software due to statute, judicial247order, or regulation then You must: (a) comply with the terms of this License248to the maximum extent possible; and (b) describe the limitations and the code249they affect. Such description must be placed in a text file included with all250distributions of the Covered Software under this License. Except to the251extent prohibited by statute or regulation, such description must be252sufficiently detailed for a recipient of ordinary skill to be able to253understand it.2542555. Termination2562575.1. The rights granted under this License will terminate automatically if You258fail to comply with any of its terms. However, if You become compliant,259then the rights granted under this License from a particular Contributor260are reinstated (a) provisionally, unless and until such Contributor261explicitly and finally terminates Your grants, and (b) on an ongoing basis,262if such Contributor fails to notify You of the non-compliance by some263reasonable means prior to 60 days after You have come back into compliance.264Moreover, Your grants from a particular Contributor are reinstated on an265ongoing basis if such Contributor notifies You of the non-compliance by266some reasonable means, this is the first time You have received notice of267non-compliance with this License from such Contributor, and You become268compliant prior to 30 days after Your receipt of the notice.2692705.2. If You initiate litigation against any entity by asserting a patent271infringement claim (excluding declaratory judgment actions, counter-claims,272and cross-claims) alleging that a Contributor Version directly or273indirectly infringes any patent, then the rights granted to You by any and274all Contributors for the Covered Software under Section 2.1 of this License275shall terminate.2762775.3. In the event of termination under Sections 5.1 or 5.2 above, all end user278license agreements (excluding distributors and resellers) which have been279validly granted by You or Your distributors under this License prior to280termination shall survive termination.2812826. Disclaimer of Warranty283284Covered Software is provided under this License on an “as is” basis, without285warranty of any kind, either expressed, implied, or statutory, including,286without limitation, warranties that the Covered Software is free of defects,287merchantable, fit for a particular purpose or non-infringing. The entire288risk as to the quality and performance of the Covered Software is with You.289Should any Covered Software prove defective in any respect, You (not any290Contributor) assume the cost of any necessary servicing, repair, or291correction. This disclaimer of warranty constitutes an essential part of this292License. No use of any Covered Software is authorized under this License293except under this disclaimer.2942957. Limitation of Liability296297Under no circumstances and under no legal theory, whether tort (including298negligence), contract, or otherwise, shall any Contributor, or anyone who299distributes Covered Software as permitted above, be liable to You for any300direct, indirect, special, incidental, or consequential damages of any301character including, without limitation, damages for lost profits, loss of302goodwill, work stoppage, computer failure or malfunction, or any and all303other commercial damages or losses, even if such party shall have been304informed of the possibility of such damages. This limitation of liability305shall not apply to liability for death or personal injury resulting from such306party’s negligence to the extent applicable law prohibits such limitation.307Some jurisdictions do not allow the exclusion or limitation of incidental or308consequential damages, so this exclusion and limitation may not apply to You.3093108. Litigation311312Any litigation relating to this License may be brought only in the courts of313a jurisdiction where the defendant maintains its principal place of business314and such litigation shall be governed by laws of that jurisdiction, without315reference to its conflict-of-law provisions. Nothing in this Section shall316prevent a party’s ability to bring cross-claims or counter-claims.3173189. Miscellaneous319320This License represents the complete agreement concerning the subject matter321hereof. If any provision of this License is held to be unenforceable, such322provision shall be reformed only to the extent necessary to make it323enforceable. Any law or regulation which provides that the language of a324contract shall be construed against the drafter shall not be used to construe325this License against a Contributor.32632732810. Versions of the License32933010.1. New Versions331332Mozilla Foundation is the license steward. Except as provided in Section33310.3, no one other than the license steward has the right to modify or334publish new versions of this License. Each version will be given a335distinguishing version number.33633710.2. Effect of New Versions338339You may distribute the Covered Software under the terms of the version of340the License under which You originally received the Covered Software, or341under the terms of any subsequent version published by the license342steward.34334410.3. Modified Versions345346If you create software not governed by this License, and you want to347create a new license for such software, you may create and use a modified348version of this License if you rename the license and remove any349references to the name of the license steward (except to note that such350modified license differs from this License).35135210.4. Distributing Source Code Form that is Incompatible With Secondary Licenses353If You choose to distribute Source Code Form that is Incompatible With354Secondary Licenses under the terms of this version of the License, the355notice described in Exhibit B of this License must be attached.356357Exhibit A - Source Code Form License Notice358359This Source Code Form is subject to the360terms of the Mozilla Public License, v.3612.0. If a copy of the MPL was not362distributed with this file, You can363obtain one at364http://mozilla.org/MPL/2.0/.365366If it is not possible or desirable to put the notice in a particular file, then367You may include the notice in a location (such as a LICENSE file in a relevant368directory) where a recipient would be likely to look for such a notice.369370You may add additional accurate notices of copyright ownership.371372Exhibit B - “Incompatible With Secondary Licenses” Notice373374This Source Code Form is “Incompatible375With Secondary Licenses”, as defined by376the Mozilla Public License, v. 2.0.377378379