1 | DOMPurify
|
---|
2 | Copyright 2024 Dr.-Ing. Mario Heiderich, Cure53
|
---|
3 |
|
---|
4 | DOMPurify is free software; you can redistribute it and/or modify it under the
|
---|
5 | terms of either:
|
---|
6 |
|
---|
7 | a) the Apache License Version 2.0, or
|
---|
8 | b) the Mozilla Public License Version 2.0
|
---|
9 |
|
---|
10 | -----------------------------------------------------------------------------
|
---|
11 |
|
---|
12 | Apache License
|
---|
13 | Version 2.0, January 2004
|
---|
14 | http://www.apache.org/licenses/
|
---|
15 |
|
---|
16 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
---|
17 |
|
---|
18 | 1. Definitions.
|
---|
19 |
|
---|
20 | "License" shall mean the terms and conditions for use, reproduction,
|
---|
21 | and distribution as defined by Sections 1 through 9 of this document.
|
---|
22 |
|
---|
23 | "Licensor" shall mean the copyright owner or entity authorized by
|
---|
24 | the copyright owner that is granting the License.
|
---|
25 |
|
---|
26 | "Legal Entity" shall mean the union of the acting entity and all
|
---|
27 | other entities that control, are controlled by, or are under common
|
---|
28 | control with that entity. For the purposes of this definition,
|
---|
29 | "control" means (i) the power, direct or indirect, to cause the
|
---|
30 | direction or management of such entity, whether by contract or
|
---|
31 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
---|
32 | outstanding shares, or (iii) beneficial ownership of such entity.
|
---|
33 |
|
---|
34 | "You" (or "Your") shall mean an individual or Legal Entity
|
---|
35 | exercising permissions granted by this License.
|
---|
36 |
|
---|
37 | "Source" form shall mean the preferred form for making modifications,
|
---|
38 | including but not limited to software source code, documentation
|
---|
39 | source, and configuration files.
|
---|
40 |
|
---|
41 | "Object" form shall mean any form resulting from mechanical
|
---|
42 | transformation or translation of a Source form, including but
|
---|
43 | not limited to compiled object code, generated documentation,
|
---|
44 | and conversions to other media types.
|
---|
45 |
|
---|
46 | "Work" shall mean the work of authorship, whether in Source or
|
---|
47 | Object form, made available under the License, as indicated by a
|
---|
48 | copyright notice that is included in or attached to the work
|
---|
49 | (an example is provided in the Appendix below).
|
---|
50 |
|
---|
51 | "Derivative Works" shall mean any work, whether in Source or Object
|
---|
52 | form, that is based on (or derived from) the Work and for which the
|
---|
53 | editorial revisions, annotations, elaborations, or other modifications
|
---|
54 | represent, as a whole, an original work of authorship. For the purposes
|
---|
55 | of this License, Derivative Works shall not include works that remain
|
---|
56 | separable from, or merely link (or bind by name) to the interfaces of,
|
---|
57 | the Work and Derivative Works thereof.
|
---|
58 |
|
---|
59 | "Contribution" shall mean any work of authorship, including
|
---|
60 | the original version of the Work and any modifications or additions
|
---|
61 | to that Work or Derivative Works thereof, that is intentionally
|
---|
62 | submitted to Licensor for inclusion in the Work by the copyright owner
|
---|
63 | or by an individual or Legal Entity authorized to submit on behalf of
|
---|
64 | the copyright owner. For the purposes of this definition, "submitted"
|
---|
65 | means any form of electronic, verbal, or written communication sent
|
---|
66 | to the Licensor or its representatives, including but not limited to
|
---|
67 | communication on electronic mailing lists, source code control systems,
|
---|
68 | and issue tracking systems that are managed by, or on behalf of, the
|
---|
69 | Licensor for the purpose of discussing and improving the Work, but
|
---|
70 | excluding communication that is conspicuously marked or otherwise
|
---|
71 | designated in writing by the copyright owner as "Not a Contribution."
|
---|
72 |
|
---|
73 | "Contributor" shall mean Licensor and any individual or Legal Entity
|
---|
74 | on behalf of whom a Contribution has been received by Licensor and
|
---|
75 | subsequently incorporated within the Work.
|
---|
76 |
|
---|
77 | 2. Grant of Copyright License. Subject to the terms and conditions of
|
---|
78 | this License, each Contributor hereby grants to You a perpetual,
|
---|
79 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
---|
80 | copyright license to reproduce, prepare Derivative Works of,
|
---|
81 | publicly display, publicly perform, sublicense, and distribute the
|
---|
82 | Work and such Derivative Works in Source or Object form.
|
---|
83 |
|
---|
84 | 3. Grant of Patent License. Subject to the terms and conditions of
|
---|
85 | this License, each Contributor hereby grants to You a perpetual,
|
---|
86 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
---|
87 | (except as stated in this section) patent license to make, have made,
|
---|
88 | use, offer to sell, sell, import, and otherwise transfer the Work,
|
---|
89 | where such license applies only to those patent claims licensable
|
---|
90 | by such Contributor that are necessarily infringed by their
|
---|
91 | Contribution(s) alone or by combination of their Contribution(s)
|
---|
92 | with the Work to which such Contribution(s) was submitted. If You
|
---|
93 | institute patent litigation against any entity (including a
|
---|
94 | cross-claim or counterclaim in a lawsuit) alleging that the Work
|
---|
95 | or a Contribution incorporated within the Work constitutes direct
|
---|
96 | or contributory patent infringement, then any patent licenses
|
---|
97 | granted to You under this License for that Work shall terminate
|
---|
98 | as of the date such litigation is filed.
|
---|
99 |
|
---|
100 | 4. Redistribution. You may reproduce and distribute copies of the
|
---|
101 | Work or Derivative Works thereof in any medium, with or without
|
---|
102 | modifications, and in Source or Object form, provided that You
|
---|
103 | meet the following conditions:
|
---|
104 |
|
---|
105 | (a) You must give any other recipients of the Work or
|
---|
106 | Derivative Works a copy of this License; and
|
---|
107 |
|
---|
108 | (b) You must cause any modified files to carry prominent notices
|
---|
109 | stating that You changed the files; and
|
---|
110 |
|
---|
111 | (c) You must retain, in the Source form of any Derivative Works
|
---|
112 | that You distribute, all copyright, patent, trademark, and
|
---|
113 | attribution notices from the Source form of the Work,
|
---|
114 | excluding those notices that do not pertain to any part of
|
---|
115 | the Derivative Works; and
|
---|
116 |
|
---|
117 | (d) If the Work includes a "NOTICE" text file as part of its
|
---|
118 | distribution, then any Derivative Works that You distribute must
|
---|
119 | include a readable copy of the attribution notices contained
|
---|
120 | within such NOTICE file, excluding those notices that do not
|
---|
121 | pertain to any part of the Derivative Works, in at least one
|
---|
122 | of the following places: within a NOTICE text file distributed
|
---|
123 | as part of the Derivative Works; within the Source form or
|
---|
124 | documentation, if provided along with the Derivative Works; or,
|
---|
125 | within a display generated by the Derivative Works, if and
|
---|
126 | wherever such third-party notices normally appear. The contents
|
---|
127 | of the NOTICE file are for informational purposes only and
|
---|
128 | do not modify the License. You may add Your own attribution
|
---|
129 | notices within Derivative Works that You distribute, alongside
|
---|
130 | or as an addendum to the NOTICE text from the Work, provided
|
---|
131 | that such additional attribution notices cannot be construed
|
---|
132 | as modifying the License.
|
---|
133 |
|
---|
134 | You may add Your own copyright statement to Your modifications and
|
---|
135 | may provide additional or different license terms and conditions
|
---|
136 | for use, reproduction, or distribution of Your modifications, or
|
---|
137 | for any such Derivative Works as a whole, provided Your use,
|
---|
138 | reproduction, and distribution of the Work otherwise complies with
|
---|
139 | the conditions stated in this License.
|
---|
140 |
|
---|
141 | 5. Submission of Contributions. Unless You explicitly state otherwise,
|
---|
142 | any Contribution intentionally submitted for inclusion in the Work
|
---|
143 | by You to the Licensor shall be under the terms and conditions of
|
---|
144 | this License, without any additional terms or conditions.
|
---|
145 | Notwithstanding the above, nothing herein shall supersede or modify
|
---|
146 | the terms of any separate license agreement you may have executed
|
---|
147 | with Licensor regarding such Contributions.
|
---|
148 |
|
---|
149 | 6. Trademarks. This License does not grant permission to use the trade
|
---|
150 | names, trademarks, service marks, or product names of the Licensor,
|
---|
151 | except as required for reasonable and customary use in describing the
|
---|
152 | origin of the Work and reproducing the content of the NOTICE file.
|
---|
153 |
|
---|
154 | 7. Disclaimer of Warranty. Unless required by applicable law or
|
---|
155 | agreed to in writing, Licensor provides the Work (and each
|
---|
156 | Contributor provides its Contributions) on an "AS IS" BASIS,
|
---|
157 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
---|
158 | implied, including, without limitation, any warranties or conditions
|
---|
159 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
---|
160 | PARTICULAR PURPOSE. You are solely responsible for determining the
|
---|
161 | appropriateness of using or redistributing the Work and assume any
|
---|
162 | risks associated with Your exercise of permissions under this License.
|
---|
163 |
|
---|
164 | 8. Limitation of Liability. In no event and under no legal theory,
|
---|
165 | whether in tort (including negligence), contract, or otherwise,
|
---|
166 | unless required by applicable law (such as deliberate and grossly
|
---|
167 | negligent acts) or agreed to in writing, shall any Contributor be
|
---|
168 | liable to You for damages, including any direct, indirect, special,
|
---|
169 | incidental, or consequential damages of any character arising as a
|
---|
170 | result of this License or out of the use or inability to use the
|
---|
171 | Work (including but not limited to damages for loss of goodwill,
|
---|
172 | work stoppage, computer failure or malfunction, or any and all
|
---|
173 | other commercial damages or losses), even if such Contributor
|
---|
174 | has been advised of the possibility of such damages.
|
---|
175 |
|
---|
176 | 9. Accepting Warranty or Additional Liability. While redistributing
|
---|
177 | the Work or Derivative Works thereof, You may choose to offer,
|
---|
178 | and charge a fee for, acceptance of support, warranty, indemnity,
|
---|
179 | or other liability obligations and/or rights consistent with this
|
---|
180 | License. However, in accepting such obligations, You may act only
|
---|
181 | on Your own behalf and on Your sole responsibility, not on behalf
|
---|
182 | of any other Contributor, and only if You agree to indemnify,
|
---|
183 | defend, and hold each Contributor harmless for any liability
|
---|
184 | incurred by, or claims asserted against, such Contributor by reason
|
---|
185 | of your accepting any such warranty or additional liability.
|
---|
186 |
|
---|
187 | END OF TERMS AND CONDITIONS
|
---|
188 |
|
---|
189 | APPENDIX: How to apply the Apache License to your work.
|
---|
190 |
|
---|
191 | To apply the Apache License to your work, attach the following
|
---|
192 | boilerplate notice, with the fields enclosed by brackets "[]"
|
---|
193 | replaced with your own identifying information. (Don't include
|
---|
194 | the brackets!) The text should be enclosed in the appropriate
|
---|
195 | comment syntax for the file format. We also recommend that a
|
---|
196 | file or class name and description of purpose be included on the
|
---|
197 | same "printed page" as the copyright notice for easier
|
---|
198 | identification within third-party archives.
|
---|
199 |
|
---|
200 | Copyright [yyyy] [name of copyright owner]
|
---|
201 |
|
---|
202 | Licensed under the Apache License, Version 2.0 (the "License");
|
---|
203 | you may not use this file except in compliance with the License.
|
---|
204 | You may obtain a copy of the License at
|
---|
205 |
|
---|
206 | http://www.apache.org/licenses/LICENSE-2.0
|
---|
207 |
|
---|
208 | Unless required by applicable law or agreed to in writing, software
|
---|
209 | distributed under the License is distributed on an "AS IS" BASIS,
|
---|
210 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
211 | See the License for the specific language governing permissions and
|
---|
212 | limitations under the License.
|
---|
213 |
|
---|
214 | -----------------------------------------------------------------------------
|
---|
215 | Mozilla Public License, version 2.0
|
---|
216 |
|
---|
217 | 1. Definitions
|
---|
218 |
|
---|
219 | 1.1. “Contributor”
|
---|
220 |
|
---|
221 | means each individual or legal entity that creates, contributes to the
|
---|
222 | creation of, or owns Covered Software.
|
---|
223 |
|
---|
224 | 1.2. “Contributor Version”
|
---|
225 |
|
---|
226 | means the combination of the Contributions of others (if any) used by a
|
---|
227 | Contributor and that particular Contributor’s Contribution.
|
---|
228 |
|
---|
229 | 1.3. “Contribution”
|
---|
230 |
|
---|
231 | means Covered Software of a particular Contributor.
|
---|
232 |
|
---|
233 | 1.4. “Covered Software”
|
---|
234 |
|
---|
235 | means Source Code Form to which the initial Contributor has attached the
|
---|
236 | notice in Exhibit A, the Executable Form of such Source Code Form, and
|
---|
237 | Modifications of such Source Code Form, in each case including portions
|
---|
238 | thereof.
|
---|
239 |
|
---|
240 | 1.5. “Incompatible With Secondary Licenses”
|
---|
241 | means
|
---|
242 |
|
---|
243 | a. that the initial Contributor has attached the notice described in
|
---|
244 | Exhibit B to the Covered Software; or
|
---|
245 |
|
---|
246 | b. that the Covered Software was made available under the terms of version
|
---|
247 | 1.1 or earlier of the License, but not also under the terms of a
|
---|
248 | Secondary License.
|
---|
249 |
|
---|
250 | 1.6. “Executable Form”
|
---|
251 |
|
---|
252 | means any form of the work other than Source Code Form.
|
---|
253 |
|
---|
254 | 1.7. “Larger Work”
|
---|
255 |
|
---|
256 | means a work that combines Covered Software with other material, in a separate
|
---|
257 | file or files, that is not Covered Software.
|
---|
258 |
|
---|
259 | 1.8. “License”
|
---|
260 |
|
---|
261 | means this document.
|
---|
262 |
|
---|
263 | 1.9. “Licensable”
|
---|
264 |
|
---|
265 | means having the right to grant, to the maximum extent possible, whether at the
|
---|
266 | time of the initial grant or subsequently, any and all of the rights conveyed by
|
---|
267 | this License.
|
---|
268 |
|
---|
269 | 1.10. “Modifications”
|
---|
270 |
|
---|
271 | means any of the following:
|
---|
272 |
|
---|
273 | a. any file in Source Code Form that results from an addition to, deletion
|
---|
274 | from, or modification of the contents of Covered Software; or
|
---|
275 |
|
---|
276 | b. any new file in Source Code Form that contains any Covered Software.
|
---|
277 |
|
---|
278 | 1.11. “Patent Claims” of a Contributor
|
---|
279 |
|
---|
280 | means any patent claim(s), including without limitation, method, process,
|
---|
281 | and apparatus claims, in any patent Licensable by such Contributor that
|
---|
282 | would be infringed, but for the grant of the License, by the making,
|
---|
283 | using, selling, offering for sale, having made, import, or transfer of
|
---|
284 | either its Contributions or its Contributor Version.
|
---|
285 |
|
---|
286 | 1.12. “Secondary License”
|
---|
287 |
|
---|
288 | means either the GNU General Public License, Version 2.0, the GNU Lesser
|
---|
289 | General Public License, Version 2.1, the GNU Affero General Public
|
---|
290 | License, Version 3.0, or any later versions of those licenses.
|
---|
291 |
|
---|
292 | 1.13. “Source Code Form”
|
---|
293 |
|
---|
294 | means the form of the work preferred for making modifications.
|
---|
295 |
|
---|
296 | 1.14. “You” (or “Your”)
|
---|
297 |
|
---|
298 | means an individual or a legal entity exercising rights under this
|
---|
299 | License. For legal entities, “You” includes any entity that controls, is
|
---|
300 | controlled by, or is under common control with You. For purposes of this
|
---|
301 | definition, “control” means (a) the power, direct or indirect, to cause
|
---|
302 | the direction or management of such entity, whether by contract or
|
---|
303 | otherwise, or (b) ownership of more than fifty percent (50%) of the
|
---|
304 | outstanding shares or beneficial ownership of such entity.
|
---|
305 |
|
---|
306 |
|
---|
307 | 2. License Grants and Conditions
|
---|
308 |
|
---|
309 | 2.1. Grants
|
---|
310 |
|
---|
311 | Each Contributor hereby grants You a world-wide, royalty-free,
|
---|
312 | non-exclusive license:
|
---|
313 |
|
---|
314 | a. under intellectual property rights (other than patent or trademark)
|
---|
315 | Licensable by such Contributor to use, reproduce, make available,
|
---|
316 | modify, display, perform, distribute, and otherwise exploit its
|
---|
317 | Contributions, either on an unmodified basis, with Modifications, or as
|
---|
318 | part of a Larger Work; and
|
---|
319 |
|
---|
320 | b. under Patent Claims of such Contributor to make, use, sell, offer for
|
---|
321 | sale, have made, import, and otherwise transfer either its Contributions
|
---|
322 | or its Contributor Version.
|
---|
323 |
|
---|
324 | 2.2. Effective Date
|
---|
325 |
|
---|
326 | The licenses granted in Section 2.1 with respect to any Contribution become
|
---|
327 | effective for each Contribution on the date the Contributor first distributes
|
---|
328 | such Contribution.
|
---|
329 |
|
---|
330 | 2.3. Limitations on Grant Scope
|
---|
331 |
|
---|
332 | The licenses granted in this Section 2 are the only rights granted under this
|
---|
333 | License. No additional rights or licenses will be implied from the distribution
|
---|
334 | or licensing of Covered Software under this License. Notwithstanding Section
|
---|
335 | 2.1(b) above, no patent license is granted by a Contributor:
|
---|
336 |
|
---|
337 | a. for any code that a Contributor has removed from Covered Software; or
|
---|
338 |
|
---|
339 | b. for infringements caused by: (i) Your and any other third party’s
|
---|
340 | modifications of Covered Software, or (ii) the combination of its
|
---|
341 | Contributions with other software (except as part of its Contributor
|
---|
342 | Version); or
|
---|
343 |
|
---|
344 | c. under Patent Claims infringed by Covered Software in the absence of its
|
---|
345 | Contributions.
|
---|
346 |
|
---|
347 | This License does not grant any rights in the trademarks, service marks, or
|
---|
348 | logos of any Contributor (except as may be necessary to comply with the
|
---|
349 | notice requirements in Section 3.4).
|
---|
350 |
|
---|
351 | 2.4. Subsequent Licenses
|
---|
352 |
|
---|
353 | No Contributor makes additional grants as a result of Your choice to
|
---|
354 | distribute the Covered Software under a subsequent version of this License
|
---|
355 | (see Section 10.2) or under the terms of a Secondary License (if permitted
|
---|
356 | under the terms of Section 3.3).
|
---|
357 |
|
---|
358 | 2.5. Representation
|
---|
359 |
|
---|
360 | Each Contributor represents that the Contributor believes its Contributions
|
---|
361 | are its original creation(s) or it has sufficient rights to grant the
|
---|
362 | rights to its Contributions conveyed by this License.
|
---|
363 |
|
---|
364 | 2.6. Fair Use
|
---|
365 |
|
---|
366 | This License is not intended to limit any rights You have under applicable
|
---|
367 | copyright doctrines of fair use, fair dealing, or other equivalents.
|
---|
368 |
|
---|
369 | 2.7. Conditions
|
---|
370 |
|
---|
371 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
|
---|
372 | Section 2.1.
|
---|
373 |
|
---|
374 |
|
---|
375 | 3. Responsibilities
|
---|
376 |
|
---|
377 | 3.1. Distribution of Source Form
|
---|
378 |
|
---|
379 | All distribution of Covered Software in Source Code Form, including any
|
---|
380 | Modifications that You create or to which You contribute, must be under the
|
---|
381 | terms of this License. You must inform recipients that the Source Code Form
|
---|
382 | of the Covered Software is governed by the terms of this License, and how
|
---|
383 | they can obtain a copy of this License. You may not attempt to alter or
|
---|
384 | restrict the recipients’ rights in the Source Code Form.
|
---|
385 |
|
---|
386 | 3.2. Distribution of Executable Form
|
---|
387 |
|
---|
388 | If You distribute Covered Software in Executable Form then:
|
---|
389 |
|
---|
390 | a. such Covered Software must also be made available in Source Code Form,
|
---|
391 | as described in Section 3.1, and You must inform recipients of the
|
---|
392 | Executable Form how they can obtain a copy of such Source Code Form by
|
---|
393 | reasonable means in a timely manner, at a charge no more than the cost
|
---|
394 | of distribution to the recipient; and
|
---|
395 |
|
---|
396 | b. You may distribute such Executable Form under the terms of this License,
|
---|
397 | or sublicense it under different terms, provided that the license for
|
---|
398 | the Executable Form does not attempt to limit or alter the recipients’
|
---|
399 | rights in the Source Code Form under this License.
|
---|
400 |
|
---|
401 | 3.3. Distribution of a Larger Work
|
---|
402 |
|
---|
403 | You may create and distribute a Larger Work under terms of Your choice,
|
---|
404 | provided that You also comply with the requirements of this License for the
|
---|
405 | Covered Software. If the Larger Work is a combination of Covered Software
|
---|
406 | with a work governed by one or more Secondary Licenses, and the Covered
|
---|
407 | Software is not Incompatible With Secondary Licenses, this License permits
|
---|
408 | You to additionally distribute such Covered Software under the terms of
|
---|
409 | such Secondary License(s), so that the recipient of the Larger Work may, at
|
---|
410 | their option, further distribute the Covered Software under the terms of
|
---|
411 | either this License or such Secondary License(s).
|
---|
412 |
|
---|
413 | 3.4. Notices
|
---|
414 |
|
---|
415 | You may not remove or alter the substance of any license notices (including
|
---|
416 | copyright notices, patent notices, disclaimers of warranty, or limitations
|
---|
417 | of liability) contained within the Source Code Form of the Covered
|
---|
418 | Software, except that You may alter any license notices to the extent
|
---|
419 | required to remedy known factual inaccuracies.
|
---|
420 |
|
---|
421 | 3.5. Application of Additional Terms
|
---|
422 |
|
---|
423 | You may choose to offer, and to charge a fee for, warranty, support,
|
---|
424 | indemnity or liability obligations to one or more recipients of Covered
|
---|
425 | Software. However, You may do so only on Your own behalf, and not on behalf
|
---|
426 | of any Contributor. You must make it absolutely clear that any such
|
---|
427 | warranty, support, indemnity, or liability obligation is offered by You
|
---|
428 | alone, and You hereby agree to indemnify every Contributor for any
|
---|
429 | liability incurred by such Contributor as a result of warranty, support,
|
---|
430 | indemnity or liability terms You offer. You may include additional
|
---|
431 | disclaimers of warranty and limitations of liability specific to any
|
---|
432 | jurisdiction.
|
---|
433 |
|
---|
434 | 4. Inability to Comply Due to Statute or Regulation
|
---|
435 |
|
---|
436 | If it is impossible for You to comply with any of the terms of this License
|
---|
437 | with respect to some or all of the Covered Software due to statute, judicial
|
---|
438 | order, or regulation then You must: (a) comply with the terms of this License
|
---|
439 | to the maximum extent possible; and (b) describe the limitations and the code
|
---|
440 | they affect. Such description must be placed in a text file included with all
|
---|
441 | distributions of the Covered Software under this License. Except to the
|
---|
442 | extent prohibited by statute or regulation, such description must be
|
---|
443 | sufficiently detailed for a recipient of ordinary skill to be able to
|
---|
444 | understand it.
|
---|
445 |
|
---|
446 | 5. Termination
|
---|
447 |
|
---|
448 | 5.1. The rights granted under this License will terminate automatically if You
|
---|
449 | fail to comply with any of its terms. However, if You become compliant,
|
---|
450 | then the rights granted under this License from a particular Contributor
|
---|
451 | are reinstated (a) provisionally, unless and until such Contributor
|
---|
452 | explicitly and finally terminates Your grants, and (b) on an ongoing basis,
|
---|
453 | if such Contributor fails to notify You of the non-compliance by some
|
---|
454 | reasonable means prior to 60 days after You have come back into compliance.
|
---|
455 | Moreover, Your grants from a particular Contributor are reinstated on an
|
---|
456 | ongoing basis if such Contributor notifies You of the non-compliance by
|
---|
457 | some reasonable means, this is the first time You have received notice of
|
---|
458 | non-compliance with this License from such Contributor, and You become
|
---|
459 | compliant prior to 30 days after Your receipt of the notice.
|
---|
460 |
|
---|
461 | 5.2. If You initiate litigation against any entity by asserting a patent
|
---|
462 | infringement claim (excluding declaratory judgment actions, counter-claims,
|
---|
463 | and cross-claims) alleging that a Contributor Version directly or
|
---|
464 | indirectly infringes any patent, then the rights granted to You by any and
|
---|
465 | all Contributors for the Covered Software under Section 2.1 of this License
|
---|
466 | shall terminate.
|
---|
467 |
|
---|
468 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
|
---|
469 | license agreements (excluding distributors and resellers) which have been
|
---|
470 | validly granted by You or Your distributors under this License prior to
|
---|
471 | termination shall survive termination.
|
---|
472 |
|
---|
473 | 6. Disclaimer of Warranty
|
---|
474 |
|
---|
475 | Covered Software is provided under this License on an “as is” basis, without
|
---|
476 | warranty of any kind, either expressed, implied, or statutory, including,
|
---|
477 | without limitation, warranties that the Covered Software is free of defects,
|
---|
478 | merchantable, fit for a particular purpose or non-infringing. The entire
|
---|
479 | risk as to the quality and performance of the Covered Software is with You.
|
---|
480 | Should any Covered Software prove defective in any respect, You (not any
|
---|
481 | Contributor) assume the cost of any necessary servicing, repair, or
|
---|
482 | correction. This disclaimer of warranty constitutes an essential part of this
|
---|
483 | License. No use of any Covered Software is authorized under this License
|
---|
484 | except under this disclaimer.
|
---|
485 |
|
---|
486 | 7. Limitation of Liability
|
---|
487 |
|
---|
488 | Under no circumstances and under no legal theory, whether tort (including
|
---|
489 | negligence), contract, or otherwise, shall any Contributor, or anyone who
|
---|
490 | distributes Covered Software as permitted above, be liable to You for any
|
---|
491 | direct, indirect, special, incidental, or consequential damages of any
|
---|
492 | character including, without limitation, damages for lost profits, loss of
|
---|
493 | goodwill, work stoppage, computer failure or malfunction, or any and all
|
---|
494 | other commercial damages or losses, even if such party shall have been
|
---|
495 | informed of the possibility of such damages. This limitation of liability
|
---|
496 | shall not apply to liability for death or personal injury resulting from such
|
---|
497 | party’s negligence to the extent applicable law prohibits such limitation.
|
---|
498 | Some jurisdictions do not allow the exclusion or limitation of incidental or
|
---|
499 | consequential damages, so this exclusion and limitation may not apply to You.
|
---|
500 |
|
---|
501 | 8. Litigation
|
---|
502 |
|
---|
503 | Any litigation relating to this License may be brought only in the courts of
|
---|
504 | a jurisdiction where the defendant maintains its principal place of business
|
---|
505 | and such litigation shall be governed by laws of that jurisdiction, without
|
---|
506 | reference to its conflict-of-law provisions. Nothing in this Section shall
|
---|
507 | prevent a party’s ability to bring cross-claims or counter-claims.
|
---|
508 |
|
---|
509 | 9. Miscellaneous
|
---|
510 |
|
---|
511 | This License represents the complete agreement concerning the subject matter
|
---|
512 | hereof. If any provision of this License is held to be unenforceable, such
|
---|
513 | provision shall be reformed only to the extent necessary to make it
|
---|
514 | enforceable. Any law or regulation which provides that the language of a
|
---|
515 | contract shall be construed against the drafter shall not be used to construe
|
---|
516 | this License against a Contributor.
|
---|
517 |
|
---|
518 |
|
---|
519 | 10. Versions of the License
|
---|
520 |
|
---|
521 | 10.1. New Versions
|
---|
522 |
|
---|
523 | Mozilla Foundation is the license steward. Except as provided in Section
|
---|
524 | 10.3, no one other than the license steward has the right to modify or
|
---|
525 | publish new versions of this License. Each version will be given a
|
---|
526 | distinguishing version number.
|
---|
527 |
|
---|
528 | 10.2. Effect of New Versions
|
---|
529 |
|
---|
530 | You may distribute the Covered Software under the terms of the version of
|
---|
531 | the License under which You originally received the Covered Software, or
|
---|
532 | under the terms of any subsequent version published by the license
|
---|
533 | steward.
|
---|
534 |
|
---|
535 | 10.3. Modified Versions
|
---|
536 |
|
---|
537 | If you create software not governed by this License, and you want to
|
---|
538 | create a new license for such software, you may create and use a modified
|
---|
539 | version of this License if you rename the license and remove any
|
---|
540 | references to the name of the license steward (except to note that such
|
---|
541 | modified license differs from this License).
|
---|
542 |
|
---|
543 | 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
|
---|
544 | If You choose to distribute Source Code Form that is Incompatible With
|
---|
545 | Secondary Licenses under the terms of this version of the License, the
|
---|
546 | notice described in Exhibit B of this License must be attached.
|
---|
547 |
|
---|
548 | Exhibit A - Source Code Form License Notice
|
---|
549 |
|
---|
550 | This Source Code Form is subject to the
|
---|
551 | terms of the Mozilla Public License, v.
|
---|
552 | 2.0. If a copy of the MPL was not
|
---|
553 | distributed with this file, You can
|
---|
554 | obtain one at
|
---|
555 | http://mozilla.org/MPL/2.0/.
|
---|
556 |
|
---|
557 | If it is not possible or desirable to put the notice in a particular file, then
|
---|
558 | You may include the notice in a location (such as a LICENSE file in a relevant
|
---|
559 | directory) where a recipient would be likely to look for such a notice.
|
---|
560 |
|
---|
561 | You may add additional accurate notices of copyright ownership.
|
---|
562 |
|
---|
563 | Exhibit B - “Incompatible With Secondary Licenses” Notice
|
---|
564 |
|
---|
565 | This Source Code Form is “Incompatible
|
---|
566 | With Secondary Licenses”, as defined by
|
---|
567 | the Mozilla Public License, v. 2.0.
|
---|
568 |
|
---|