Vue: Perhaps Vue.js has in violation status of MPL.

Created on 16 Jan 2017  ·  3Comments  ·  Source: vuejs/vue

What is happening?

Vue included and modified "html-parser.js", Moreover chosen Mozilla Public License(MPL).
MPL obliges the following provision.

3.1. Application of License.
The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. 
The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. 
...

Since Vue has chosen MIT license,Vue has two licenses and it does not include a copy of the license that MPL obliges, it is considered to be in violation of MPL's terms.

If you modify it to include a copy of the license terms of MPL, you can avoid violating the rules,But

  • It may be necessary to be able to distribute modified vue.js.
  • License is described as MIT and distributed, there is a possibility that it may differ from intention.

What is Expected?

If you choose Apache Software License 2.0 instead of MPL, these problems will be solved.
Does Vue use "html-parser.js" by selecting Apache Software License 2.0 license?
In that case, I want you to explicitly select Apache.

Most helpful comment

I think the fact that the original developers and their licenses being mentioned at the top of the code in question satisfies the rules of the MPL. If you read this section, you should also think the same.

3.7. Larger Works.
You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.

In other words, just be cause Vue is using html-parser doesn't mean it must follow its license type.

Scott

All 3 comments

I think the fact that the original developers and their licenses being mentioned at the top of the code in question satisfies the rules of the MPL. If you read this section, you should also think the same.

3.7. Larger Works.
You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.

In other words, just be cause Vue is using html-parser doesn't mean it must follow its license type.

Scott

After searching about this, there's no problem in using a piece of code released under Apache license as long as you leave the notice. We can replace the line at https://github.com/vuejs/vue/blob/dev/src/compiler/parser/html-parser.js#L8 with Original code by Erik Arvidsson, Apache License, Version 2.0.
But, as @smolinari said, we should not need this

As @smolinari pointed out, it seems to be fine to only attribute the specific covered code under MPL - which means you can still use/distribute Vue under MIT, as long as you keep the MPL notice in Vue's source code intact.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seemsindie picture seemsindie  ·  3Comments

wufeng87 picture wufeng87  ·  3Comments

paceband picture paceband  ·  3Comments

fergaldoyle picture fergaldoyle  ·  3Comments

bdedardel picture bdedardel  ·  3Comments