Skip to content

Commit

Permalink
Merge e1b9cad into d8c7f5d
Browse files Browse the repository at this point in the history
  • Loading branch information
wupengFEX committed Dec 14, 2017
2 parents d8c7f5d + e1b9cad commit db836da
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 13 deletions.
1 change: 1 addition & 0 deletions cases/213.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<script src="https://mipcache.bdstatic.com/static/v1/mip.js"></script>
<script async src="https://mipcache.bdstatic.com/static/v1/mip-ad/mip-ad.js"></script>
<script src="https://mipcache.bdstatic.com/extensions/platform/v1/mip-jzbga/mip-jzbga.js.js"></script>
</head>

<body>
Expand Down
16 changes: 12 additions & 4 deletions cases/213.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,28 @@
"offset": 387,
"input": " <script src=\"https://mipcache.bdstatic.com/static/v1/mip.js\"></script>"
},
{
"message": "标签'script'的强制性属性'async'缺失",
"code": "06200501",
"line": 13,
"col": 5,
"offset": 553,
"input": " <script src=\"https://mipcache.bdstatic.com/extensions/platform/v1/mip-jzbga/mip-jzbga.js.js\"></script>"
},
{
"message": "标签'script'中的属性'type'的属性值'application/json'无效",
"code": "06200301",
"line": 26,
"line": 27,
"col": 5,
"offset": 1366,
"offset": 1473,
"input": " <script type=\"application/json\" src=\"https://mipcache.bdstatic.com/static/v1/mip-sidebar/mip-sidebar.js\"></script>"
},
{
"message": "标签'script'中的属性'type'的属性值''无效",
"code": "06200301",
"line": 27,
"line": 28,
"col": 5,
"offset": 1485,
"offset": 1592,
"input": " <script type=\"\" src=\"https://mipcache.bdstatic.com/static/v1/mip-showmore/mip-showmore.js\"></script>"
}
]
6 changes: 3 additions & 3 deletions dist/mip-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -16755,7 +16755,7 @@ function hasOwnProperty(obj, prop) {
},{"./support/isBuffer":56,"_process":36,"inherits":55}],58:[function(require,module,exports){
module.exports={
"name": "mip-validator",
"version": "1.5.10",
"version": "1.5.11",
"description": "MIP validator",
"main": "index.js",
"dependencies": {
Expand Down Expand Up @@ -16962,7 +16962,7 @@ module.exports={
}, {
"match_ancestor": "head",
"match": {
"src": "/^(https:)?\/\/(mipcache.bdstatic.com\/static\/mipmain)|(m.baidu.com\/static\/ala\/sf\/static\/)|((https:)?\/\/mipcache.bdstatic.com\/static\/v\\d\/)|((https:)?\/\/c.mipcdn.com\/static\/v\\d\/)|((https:)?\/\/c.mipcdn.com\/static\/mipmain)/"
"src":"/^((https:)?\/\/mipcache.bdstatic.com)|((https:)?\/\/m.baidu.com\/static\/ala\/sf\/static\/)|((https:)?\/\/c.mipcdn.com)/"
},
"attrs": {
"async": {
Expand Down Expand Up @@ -17173,7 +17173,7 @@ module.exports={
}
},
"head": {
"duplicate": true,
"duplicate": true,
"mandatory": true,
"mandatory_parent": "html"
},
Expand Down
4 changes: 2 additions & 2 deletions dist/mip-validator.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mip-validator",
"version": "1.5.10",
"version": "1.5.11",
"description": "MIP validator",
"main": "index.js",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
}, {
"match_ancestor": "head",
"match": {
"src": "/^(https:)?\/\/(mipcache.bdstatic.com\/static\/mipmain)|(m.baidu.com\/static\/ala\/sf\/static\/)|((https:)?\/\/mipcache.bdstatic.com\/static\/v\\d\/)|((https:)?\/\/c.mipcdn.com\/static\/v\\d\/)|((https:)?\/\/c.mipcdn.com\/static\/mipmain)/"
"src":"/^((https:)?\/\/mipcache.bdstatic.com)|((https:)?\/\/m.baidu.com\/static\/ala\/sf\/static\/)|((https:)?\/\/c.mipcdn.com)/"
},
"attrs": {
"async": {
Expand Down Expand Up @@ -313,7 +313,7 @@
}
},
"head": {
"duplicate": true,
"duplicate": true,
"mandatory": true,
"mandatory_parent": "html"
},
Expand Down

0 comments on commit db836da

Please sign in to comment.