Skip to content

fix a bug when there's no element on page #26

Open
TooBug wants to merge 2 commits intoIdered:masterfrom
cdc-im:master
Open

fix a bug when there's no element on page #26
TooBug wants to merge 2 commits intoIdered:masterfrom
cdc-im:master

Conversation

@TooBug
Copy link
Contributor

@TooBug TooBug commented Oct 11, 2013

e.g.

input[checkbox]:checked{
    abc:abc;
}

when no checkbox on page, it will output:

/*some css 1*/

{
    abc:abc;
}

/*some css 2*/

thus makes 'some css 2' invaild.

Another case:

input[checkbox]:checked,input[checkbox]:disabled:checked{
    abc:abc;
}

if no checkbox is disabled, it will output:

/*some css 1*/

CPS0,CPS1,{
    abc:abc;
}

/*some css 2*/

makes the selector is invalid.

e.g.

    input[checkbox]:checked{
        abc:abc;
    }

when no checkbox on page, it will output:

   /*some css 1*/

    {
        abc:abc;
    }

    /*some css 2*/

thus makes 'some css 2' invaild.


Another case:

    input[checkbox]:checked,input[checkbox]:disabled:checked{
        abc:abc;
    }

if no checkbox is disabled, it will output:

    /*some css 1*/

    CPS0,CPS1,{
        abc:abc;
    }

    /*some css 2*/

makes the selector is invalid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant