Re: ID/Class Names beginning with numbers
Thomas BAYER - Web Alliance <[email protected]> Wed, 27 Nov 2013 16:20:16 +0000
| Newsgroups | gmane.comp.web.html.general |
|---|---|
| Message-ID | <18B45E1EEFCDC348BC5AB19D5EFBEF93011EF4C6DF@ArenasMail.weballiance.lan> |
--_000_18B45E1EEFCDC348BC5AB19D5EFBEF93011EF4C6DFArenasMailweb_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Philip Taylor wrote :
> I can't see a /prima facie/ case for that. Why do you tacitly
> assert that it would be the case, and would your argument
> then not be equally true for (say) class or ID names to be
> permitted to contain embedded spaces ?
I'm just raising a question, and it seems to me - emphasis on *me* - that i=
t would be useful to be able to have ID/Class names beginning by a number, =
mut that's just my point of view.
I used to be bothered by this at the beginning, for instance to distinguish=
odd and even rows/columns in a <table /> element, it just seemed counter-p=
roductive to assign class names like "td_0" and "td_0" instead of just "0" =
or "1".
Still, let's set aside my views on the matter, I'm just trying to understan=
d the reason why it can't be done.
Finally, concerning the impossibility for ID/Class names to contain embedde=
d spaces, it seems incompatible with CSS and jQuery selectors, to name just=
a few.
http://www.web-alliance.fr
--_000_18B45E1EEFCDC348BC5AB19D5EFBEF93011EF4C6DFArenasMailweb_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:#1F497D;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:#1F497D;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";
color:#1F497D;
mso-fareast-language:FR;}
..MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"FR" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">Philip =
Taylor wrote :<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D"><o:p>&n=
bsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">> I =
can't see a /prima facie/ case for that. Why do you tacitly<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">> as=
sert that it would be the case, and would your argument<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">> th=
en not be equally true for (say) class or ID names to be<o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">> pe=
rmitted to contain embedded spaces ?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D"><o:p>&n=
bsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">I'm jus=
t raising a question, and it seems to me - emphasis on *me* - that it would=
be useful to be able to have ID/Class names beginning by a number, mut tha=
t's just my point of view.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">I used =
to be bothered by this at the beginning, for instance to distinguish odd an=
d even rows/columns in a <table /> element, it just seemed counter-pr=
oductive to assign class names like "td_0" and
"td_0" instead of just "0" or "1".<o:p></o:p=
></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D"><o:p>&n=
bsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">Still, =
let's set aside my views on the matter, I'm just trying to understand the r=
eason why it can't be done.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D"><o:p>&n=
bsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D">Finally=
, concerning the impossibility for ID/Class names to contain embedded space=
s, it seems incompatible with CSS and jQuery selectors, to name just a few.=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:#1F497D"><o:p>&n=
bsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">http://www.web-alliance.fr<o:p>=
</o:p></span></p>
</div>
</body>
</html>
--_000_18B45E1EEFCDC348BC5AB19D5EFBEF93011EF4C6DFArenasMailweb_--