Re: [JSMentors] spaces in attribute values

2011-09-07 Thread Nathan Sweet
y are perhaps less forgiving, but not > >> >> necessarily > >> >> acting improperly. > >> >> > >> >> font-family: monospace, Courier New, Lucida Console; > >> >> > >> >> In this second example there is a list of

Re: [JSMentors] spaces in attribute values

2011-09-07 Thread Diego Perini
>> >> >> >> In this second example there is a list of values, but what is the value >> >> separator the space, the comma, or both?  In this case it may be >> >> preferable >> >> to throw an error if this complicates interpretation during

Re: [JSMentors] spaces in attribute values

2011-09-07 Thread Nathan Sweet
ce. You will have to > >> decide whether you want your tool to be simple and maintainable or > popular > >> and widely reused. You do not get both without significantly increasing > >> your development costs. > >> > >> Thanks, > >> Austin

Re: [JSMentors] spaces in attribute values

2011-09-07 Thread Diego Perini
welcomed in the public space.  You will have to >> decide whether you want your tool to be simple and maintainable or popular >> and widely reused.  You do not get both without significantly increasing >> your development costs. >> >> Thanks, >> Austin Cheney, CISSP &

RE: [JSMentors] spaces in attribute values

2011-09-07 Thread Cheney, Austin
Sweet Sent: Tuesday, September 06, 2011 5:04 PM To: jsmentors@googlegroups.com Subject: Re: [JSMentors] spaces in attribute values >>If you want elegance, simplicity, and specificity then your best bet is XPath. If Diego Perini is listening in to this conversation I'd love to hear his thoug

Re: [JSMentors] spaces in attribute values

2011-09-07 Thread Diego Perini
r fastest solution, as they do their job with >> clarity. >> >> If at the end of the day you still want to use some out of context >> convention then be prepared to make some hard decisions that come with >> unpleasantly burdensome consequences that extend beyond impleme

Re: [JSMentors] spaces in attribute values

2011-09-06 Thread Nathan Sweet
Nathan Sweet > Sent: Tuesday, September 06, 2011 2:12 PM > To: jsmentors@googlegroups.com > Subject: Re: [JSMentors] spaces in attribute values > > >>As for ANY CSS property value, that is more than one word you should use > quotes, like font names. That this would apply to se

RE: [JSMentors] spaces in attribute values

2011-09-06 Thread Cheney, Austin
smentors@googlegroups.com [mailto:jsmentors@googlegroups.com] On Behalf Of Nathan Sweet Sent: Tuesday, September 06, 2011 2:12 PM To: jsmentors@googlegroups.com Subject: Re: [JSMentors] spaces in attribute values >>As for ANY CSS property value, that is more than one word you should use >>quotes, l

Re: [JSMentors] spaces in attribute values

2011-09-06 Thread Nathan Sweet
>>As for ANY CSS property value, that is more than one word you should use quotes, like font names. That this would apply to selectors too. Thanks Poetro, So this presents an interesting dilemma, it really is more of a code design question whether I should go above and beyond the call of duty and

Re: [JSMentors] spaces in attribute values

2011-09-06 Thread Poetro
Sorry, messed the the order >> Attribute values must be CSS identifiers or strings. > > See the specification for identifiers > http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier > >> In CSS, identifiers (including element names, classes, and IDs in selectors) >> can contain only the cha

Re: [JSMentors] spaces in attribute values

2011-09-06 Thread Poetro
2011/9/6 Nathan Sweet : > I should amend my claim. Try it without quotes now. Why are quotes important > in this case, and certainly the spec never says they are required or change > the process in anyway, maybe this is where I'm going wrong. My engine works > with and without quotes, but maybe it

Re: [JSMentors] spaces in attribute values

2011-09-06 Thread Nathan Sweet
> From: jsmentors@googlegroups.com [mailto:jsmentors@googlegroups.com] On > Behalf Of nathanJsweet > Sent: Tuesday, September 06, 2011 10:02 AM > To: The JSMentors JavaScript Discussion Group > Subject: [JSMentors] spaces in attribute values > > Hey all, > I'm bui

RE: [JSMentors] spaces in attribute values

2011-09-06 Thread Cheney, Austin
ors@googlegroups.com [mailto:jsmentors@googlegroups.com] On Behalf Of nathanJsweet Sent: Tuesday, September 06, 2011 10:02 AM To: The JSMentors JavaScript Discussion Group Subject: [JSMentors] spaces in attribute values Hey all, I'm building my selector engine still (for those of you who remember my il

Re: [JSMentors] spaces in attribute values

2011-09-06 Thread Poetro
2011/9/6 nathanJsweet : > Hey all, > I'm building my selector engine still (for those of you who remember > my ill-fated test suite), I'll be submitting it for code review > shortly, but I ran into an interesting issue that I was hoping someone > could resolve for me. Nowhere, that I can find, in t

[JSMentors] spaces in attribute values

2011-09-06 Thread nathanJsweet
Hey all, I'm building my selector engine still (for those of you who remember my ill-fated test suite), I'll be submitting it for code review shortly, but I ran into an interesting issue that I was hoping someone could resolve for me. Nowhere, that I can find, in the CSS spec does it say that an at