On 7/12/07, Michael Koziarski <[EMAIL PROTECTED]> wrote:
>
> How are css selectors useful when testing xml? Do you just use the
> element names?

element names, attributes, child, ancestor, sibling, pseudo-classes
like :empty, etc.  Pretty much anything but .class and #id selectors
are widely useful.  Think about testing your XML with regexps (yech!)
or installing a parser.  assert_select provides an amazingly powerful
syntax for a non-trivial problem domain.  If only web browsers
supported all those selectors!

> As for the patch, you should probably use the lookup function in
> mime.rb instead of regexp matching. That'll remove the false positives

Agreed, this will be an improvement.  I'm checking out mime.rb now to
figure out how to do this.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to