diff --git a/cases/289.html b/cases/289.html new file mode 100644 index 0000000..bcbea47 --- /dev/null +++ b/cases/289.html @@ -0,0 +1,26 @@ + + + + + + + + + MIP页Demo效果 + + + + + + + + \ No newline at end of file diff --git a/cases/289.json b/cases/289.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/cases/289.json @@ -0,0 +1 @@ +[] diff --git a/cases/290.html b/cases/290.html new file mode 100644 index 0000000..050829a --- /dev/null +++ b/cases/290.html @@ -0,0 +1,25 @@ + + + + + + + + MIP页Demo效果 + + + + + + + + \ No newline at end of file diff --git a/cases/290.json b/cases/290.json new file mode 100644 index 0000000..49ea79e --- /dev/null +++ b/cases/290.json @@ -0,0 +1,18 @@ +[ + { + "message": "标签 'script' 中的属性 'type' 的属性值 'application/json' 无效", + "code": "06200301", + "line": 13, + "col": 9, + "offset": 442, + "input": " " + }, + { + "message": "标签 'script' 中的属性 'type' 的属性值 'application/mip-script' 无效", + "code": "06200301", + "line": 14, + "col": 9, + "offset": 530, + "input": " + + + + + + + + + + diff --git a/cases/291.json b/cases/291.json new file mode 100644 index 0000000..b5f13e7 --- /dev/null +++ b/cases/291.json @@ -0,0 +1,10 @@ +[ + { + "message": "标签 '' 只能出现一次", + "code": "06200701", + "line": 127, + "col": 5, + "offset": 4999, + "input": " " + } +] diff --git a/cases/README.md b/cases/README.md index 6f29260..b645c5d 100644 --- a/cases/README.md +++ b/cases/README.md @@ -110,7 +110,9 @@ 213|标签'script'在head中使用时应该家'async'属性 # 新增规则 + 页面编码|说明|状态 +---|--- 214|不存在 mip.css 标签|不通过 215|存在 2 个 rel="canonical" 的标签|不通过 216|存在 2 个 rel="miphtml" 的标签|不通过 @@ -178,4 +180,7 @@ 278|initial-scale为其他|不通过 279|内部以逗号分隔|通过 280|内部以分号分隔|通过 -281|内部以其他分隔|不通过 \ No newline at end of file +281|内部以其他分隔|不通过 +289|src 不存在,type 为 application/mip-script | 通过 +290|src 存在,type 为 application/mip-script | 不通过 +291|标签 mip-shell 只能出现一次 | 不通过 \ No newline at end of file diff --git a/rules.json b/rules.json index 8a3c3a1..e139869 100644 --- a/rules.json +++ b/rules.json @@ -105,7 +105,7 @@ }, { "disallow": true, "match": { - "type": "/^(?!application\/(ld\\+)?json$)/", + "type": "/^(?!(application\/(ld\\+)?json$)|(application\/mip-script$))/", "src":"/^(?!((https:)?\/\/((mipcache\\.bdstatic\\.com)|(c\\.mipcdn\\.com))(\/([\\s\\S]*))?$))/" } }, { @@ -363,5 +363,8 @@ "value": "/^\\S+$/" } } + }, + "mip-shell": { + "duplicate": true } } \ No newline at end of file