Code Monkey home page Code Monkey logo

learn-mip's Introduction

learn-mip

mip Build Status

list

rules

在线编辑器里添加了 mipengine/mip-validator 的校验外又额外添加的基于 http://htmlhint.com/ 的校验规则

标准

强制的、错误的

doctype-first

doctype 文档定义必须是第一个元素。

doctype-html5

doctype 必须使用 html5 标准头部。

tag-pair

标签必须闭合。

建议

建议的、警告的

alt-require

图片标签建议使用 alt 属性。

id-class-ad-disabled

ID和类属性不建议使用 ad 关键字,它可能会被adblock软件阻止。

id-unique

ID属性的值必须是唯一的。

title-require

<title> 标签必须在 <head> 内。

开发

# 安装依赖
npm install

# 启动 http-server 预览
npm start

# 使用 mip-validator 验证 src 下的html文件
npm run validator

todo

  • 输入<div>时自动闭合
  • 页面代码自动规范检查
  • 页面错误智能提示
  • server端抓取

thanks

changelog

  • 0918 - 基于 htmllint 开发在线 HTML 校验
  • 0917 - 基于 codemirror 开发在线编辑器, 支持校验
  • 0916 - 根据 MIP 官网写些小 demo

License

Apache 2.0

learn-mip's People

Contributors

xuexb avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vincentpanqi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.