JustHTML::Constants
Constants
FOREIGN_ATTRIBUTE_ADJUSTMENTS = {"xlink:actuate" => {"xlink", "actuate", "http://www.w3.org/1999/xlink"}, "xlink:arcrole" => {"xlink", "arcrole", "http://www.w3.org/1999/xlink"}, "xlink:href" => {"xlink", "href", "http://www.w3.org/1999/xlink"}, "xlink:role" => {"xlink", "role", "http://www.w3.org/1999/xlink"}, "xlink:show" => {"xlink", "show", "http://www.w3.org/1999/xlink"}, "xlink:title" => {"xlink", "title", "http://www.w3.org/1999/xlink"}, "xlink:type" => {"xlink", "type", "http://www.w3.org/1999/xlink"}, "xml:lang" => {"xml", "lang", "http://www.w3.org/XML/1998/namespace"}, "xml:space" => {"xml", "space", "http://www.w3.org/XML/1998/namespace"}, "xmlns" => {nil, "xmlns", "http://www.w3.org/2000/xmlns/"}, "xmlns:xlink" => {"xmlns", "xlink", "http://www.w3.org/2000/xmlns/"}}
FORMATTING_ELEMENTS = Set {"a", "b", "big", "code", "em", "font", "i", "nobr", "s", "small", "strike", "strong", "tt", "u"}
HTML4_PUBLIC_PREFIXES = {"-//w3c//dtd html 4.01 frameset//", "-//w3c//dtd html 4.01 transitional//"}
LIMITED_QUIRKY_PUBLIC_PREFIXES = {"-//w3c//dtd xhtml 1.0 frameset//", "-//w3c//dtd xhtml 1.0 transitional//"}
MATHML_ATTRIBUTE_ADJUSTMENTS = {"definitionurl" => "definitionURL"}
NAMESPACE_HTML = "html"
NAMESPACE_MATHML = "mathml"
NAMESPACE_SVG = "svg"
QUIRKY_PUBLIC_MATCHES = {"-//w3o//dtd w3 html strict 3.0//en//", "-/w3c/dtd html 4.0 transitional/en", "html"}
Quirks mode detection constants
QUIRKY_PUBLIC_PREFIXES = {"-//advasoft ltd//dtd html 3.0 aswedit + extensions//", "-//as//dtd html 3.0 aswedit + extensions//", "-//ietf//dtd html 2.0 level 1//", "-//ietf//dtd html 2.0 level 2//", "-//ietf//dtd html 2.0 strict level 1//", "-//ietf//dtd html 2.0 strict level 2//", "-//ietf//dtd html 2.0 strict//", "-//ietf//dtd html 2.0//", "-//ietf//dtd html 2.1e//", "-//ietf//dtd html 3.0//", "-//ietf//dtd html 3.2 final//", "-//ietf//dtd html 3.2//", "-//ietf//dtd html 3//", "-//ietf//dtd html level 0//", "-//ietf//dtd html level 1//", "-//ietf//dtd html level 2//", "-//ietf//dtd html level 3//", "-//ietf//dtd html strict level 0//", "-//ietf//dtd html strict level 1//", "-//ietf//dtd html strict level 2//", "-//ietf//dtd html strict level 3//", "-//ietf//dtd html strict//", "-//ietf//dtd html//", "-//metrius//dtd metrius presentational//", "-//microsoft//dtd internet explorer 2.0 html strict//", "-//microsoft//dtd internet explorer 2.0 html//", "-//microsoft//dtd internet explorer 2.0 tables//", "-//microsoft//dtd internet explorer 3.0 html strict//", "-//microsoft//dtd internet explorer 3.0 html//", "-//microsoft//dtd internet explorer 3.0 tables//", "-//netscape comm. corp.//dtd html//", "-//netscape comm. corp.//dtd strict html//", "-//o'reilly and associates//dtd html 2.0//", "-//o'reilly and associates//dtd html extended 1.0//", "-//o'reilly and associates//dtd html extended relaxed 1.0//", "-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//", "-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//", "-//spyglass//dtd html 2.0 extended//", "-//sq//dtd html 2.0 hotmetal + extensions//", "-//sun microsystems corp.//dtd hotjava html//", "-//sun microsystems corp.//dtd hotjava strict html//", "-//w3c//dtd html 3 1995-03-24//", "-//w3c//dtd html 3.2 draft//", "-//w3c//dtd html 3.2 final//", "-//w3c//dtd html 3.2//", "-//w3c//dtd html 3.2s draft//", "-//w3c//dtd html 4.0 frameset//", "-//w3c//dtd html 4.0 transitional//", "-//w3c//dtd html experimental 19960712//", "-//w3c//dtd html experimental 970421//", "-//w3c//dtd w3 html//", "-//w3o//dtd w3 html 3.0//", "-//webtechs//dtd mozilla html 2.0//", "-//webtechs//dtd mozilla html//"}
QUIRKY_SYSTEM_MATCHES = {"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"}
RAWTEXT_ELEMENTS = Set {"script", "style", "xmp", "iframe", "noembed", "noframes"}
RCDATA_ELEMENTS = Set {"title", "textarea"}
SPECIAL_ELEMENTS = Set {"address", "applet", "area", "article", "aside", "base", "basefont", "bgsound", "blockquote", "body", "br", "button", "caption", "center", "col", "colgroup", "dd", "details", "dir", "div", "dl", "dt", "embed", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "iframe", "img", "input", "keygen", "li", "link", "listing", "main", "marquee", "menu", "meta", "nav", "noembed", "noframes", "noscript", "object", "ol", "p", "param", "plaintext", "pre", "script", "search", "section", "select", "source", "style", "summary", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "title", "tr", "track", "ul", "wbr", "xmp"}
SVG_ATTRIBUTE_ADJUSTMENTS = {"attributename" => "attributeName", "attributetype" => "attributeType", "basefrequency" => "baseFrequency", "baseprofile" => "baseProfile", "calcmode" => "calcMode", "clippathunits" => "clipPathUnits", "diffuseconstant" => "diffuseConstant", "edgemode" => "edgeMode", "filterunits" => "filterUnits", "glyphref" => "glyphRef", "gradienttransform" => "gradientTransform", "gradientunits" => "gradientUnits", "kernelmatrix" => "kernelMatrix", "kernelunitlength" => "kernelUnitLength", "keypoints" => "keyPoints", "keysplines" => "keySplines", "keytimes" => "keyTimes", "lengthadjust" => "lengthAdjust", "limitingconeangle" => "limitingConeAngle", "markerheight" => "markerHeight", "markerunits" => "markerUnits", "markerwidth" => "markerWidth", "maskcontentunits" => "maskContentUnits", "maskunits" => "maskUnits", "numoctaves" => "numOctaves", "pathlength" => "pathLength", "patterncontentunits" => "patternContentUnits", "patterntransform" => "patternTransform", "patternunits" => "patternUnits", "pointsatx" => "pointsAtX", "pointsaty" => "pointsAtY", "pointsatz" => "pointsAtZ", "preservealpha" => "preserveAlpha", "preserveaspectratio" => "preserveAspectRatio", "primitiveunits" => "primitiveUnits", "refx" => "refX", "refy" => "refY", "repeatcount" => "repeatCount", "repeatdur" => "repeatDur", "requiredextensions" => "requiredExtensions", "requiredfeatures" => "requiredFeatures", "specularconstant" => "specularConstant", "specularexponent" => "specularExponent", "spreadmethod" => "spreadMethod", "startoffset" => "startOffset", "stddeviation" => "stdDeviation", "stitchtiles" => "stitchTiles", "surfacescale" => "surfaceScale", "systemlanguage" => "systemLanguage", "tablevalues" => "tableValues", "targetx" => "targetX", "targety" => "targetY", "textlength" => "textLength", "viewbox" => "viewBox", "viewtarget" => "viewTarget", "xchannelselector" => "xChannelSelector", "ychannelselector" => "yChannelSelector", "zoomandpan" => "zoomAndPan"}
SVG_TAG_ADJUSTMENTS = {"altglyph" => "altGlyph", "altglyphdef" => "altGlyphDef", "altglyphitem" => "altGlyphItem", "animatecolor" => "animateColor", "animatemotion" => "animateMotion", "animatetransform" => "animateTransform", "clippath" => "clipPath", "feblend" => "feBlend", "fecolormatrix" => "feColorMatrix", "fecomponenttransfer" => "feComponentTransfer", "fecomposite" => "feComposite", "feconvolvematrix" => "feConvolveMatrix", "fediffuselighting" => "feDiffuseLighting", "fedisplacementmap" => "feDisplacementMap", "fedistantlight" => "feDistantLight", "fedropshadow" => "feDropShadow", "feflood" => "feFlood", "fefunca" => "feFuncA", "fefuncb" => "feFuncB", "fefuncg" => "feFuncG", "fefuncr" => "feFuncR", "fegaussianblur" => "feGaussianBlur", "feimage" => "feImage", "femerge" => "feMerge", "femergenode" => "feMergeNode", "femorphology" => "feMorphology", "feoffset" => "feOffset", "fepointlight" => "fePointLight", "fespecularlighting" => "feSpecularLighting", "fespotlight" => "feSpotLight", "fetile" => "feTile", "feturbulence" => "feTurbulence", "foreignobject" => "foreignObject", "glyphref" => "glyphRef", "lineargradient" => "linearGradient", "radialgradient" => "radialGradient", "textpath" => "textPath"}
VOID_ELEMENTS = Set {"area", "base", "basefont", "bgsound", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"}