HTML 标签名称是否有最大尺寸(长度)

Does HTML tag name has a max size ( length )

我确实想为 HTML 标记名构建一个验证器,

   vdAPI.get({module:'html',subject:'tag'}).validator=function (tag){
         return !vdAPI.nottags.contains(tag) && (tag.length>0 && tag.length <= vdAPI.MAX_LENGTH_TAG)
    }

vdAPI.MAX_LENGTH_TAG 的合适值是多少?

来自w3.org

The algorithm described below places no limit on the depth of the DOM tree generated, or on the length of tag names, attribute names, attribute values, Text nodes, etc. While implementors are encouraged to avoid arbitrary limits, it is recognized that practical concerns will likely force user agents to impose nesting depth constraints.