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
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.
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.
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.
In other words, just be cause Vue is using
html-parser
doesn't mean it must follow its license type.Scott