Previous Message
Next Message

Rule of Thumb For Naming Classes/IDs?

Sent by Alan Gresley on 31 March 2011 18:06


Short answer to this one.

On 1/04/2011 2:14 AM, Barney Carroll wrote:

>> <http://css-class.com/test/css/selectors/identifiers-character-encoding2.htm>
>
> Is the update for the generated content tests?


Did you not the 2nd, 3rd and 4th test. If an ID was like this 
'id="1111"' the following would all work.

.\31\31\31\31 { ... }

.\031\031\031\031 { ... }

.\0031\0031\0031\0031 { ... }


> Removing the escape
> characters will reveal the digit content… But I'm not sure what's
> being tested for. Interestingly, Webkit's DOM inspector shows the
> processed rule for span.one::before as being
>
> content: 'url(0');
>
> No idea what that's about.


Browsers show difference with encoding. Strange what Safari shows. Is 
this in Firebug? My Firebug does not work. I think I need I clean 
install of Safari sine I have other problems with it.

This is a error that the CSS validator has.

<http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Fcss-class.com%2Ftest%2Fcss%2Fselectors%2Fidentifiers-character-encoding2.htm>


13 Parse Error Lexical error at line 1, column 1. Encountered: "\u0a0a" 
(2570), after : ""


This I will explain in the other email (about the parsing, not the 
validator error).


> I'm not saying there necessarily isn't a good reason… But I don't know
> what that reason is. Thanks for the continued testing and
> investigation.


It's coming. :-)


-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: