jQuery.support property

The jQuery.support property contains sets of properties that represent different browser features or vulnerabilities.

This property is mainly used for jQuery's internal use

 

  • jQuery.support mainly includes the following tests:

    boxModel : Equals true if this page and browser are rendered with the W3C CSS box model. Usually in IE 6 and IE 7's quirks mode this value is false. This value is null until the document is ready.

    cssFloat : Returns true if cssFloat is used to access the CSS float value. Currently in IE will return false, he uses styleFloat instead.

    hrefNormalized : Returns true if the browser returns unaltered results from getAttribute("href"). In IE it will return false because its URLs are normalized.

    htmlSerialize : Returns true if the browser will serialize these links when inserting link elements through innerHTML, and currently returns false in IE.

    leadingWhitespace : Returns true if the browser keeps leading whitespace characters when using innerHTML, currently returns false in IE 6-8.

    noCloneEvent : Returns true if the browser does not copy the element along with the event handler when cloning the element, currently returns false in IE.

    objectAll : true if executing getElementsByTagName("*") on an element object returns all descendant elements, currently false in IE 7.

    opacity : Returns true if the browser can properly interpret the transparency style attribute, currently returns false in IE because it uses an alpha filter instead.

    scriptEval : Whether the browser executes the script when inserting script code using the appendChild/createTextNode method, currently returns false in IE, and IE uses the .text method to insert script code for execution.

    style : true if getAttribute("style") returns the element's inline style. Currently false in IE because he uses cssText instead.

    tbody : Returns true if browsers allow table elements not to contain tbody elements. Currently in IE it will return false, it will automatically insert the missing tbody.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324970761&siteId=291194637