Skip to content

Warn about jQuery.cssNumber #296

Closed
@dmethvin

Description

@dmethvin

See jquery/jquery#4009

Detect assignments to jQuery.cssNumber and recommend that it only be done if that property exists; note that it's going away in 4.0.

Recommend that people do not pass raw numbers to .css() and instead always pass strings and append "px" when appropriate. Point out line-height as a troublesome case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions