Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6100743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:25:15+00:00 2026-05-23T13:25:15+00:00

Hi i am using ‘Qwery selector engine by dustin diaz if you clicked that

  • 0

Hi i am using ‘Qwery” selector engine by dustin diaz if you clicked that link, the sample page shows selectors like

div#baz.thunk a[-data-info*="hello world"] span + strong {}

and

#foo a[lang|=en] {} subcodes

i couldn’t understand the use of subcodes and data-info i even read the CSS2 selector w3c page but could not comprehend from it. Could someone explain using simple example how these works. My notion of -data-info is match innerHTML, Dom properties of a object like below

<a href="http://www.google.com">Hello</a>

and when i executed the below selector it would give me the above element.

qwery("a[-data-innerHTML='Hello']");

please do clarify my notions and suggest me query to write to get the innerHTML/other properties using qwery selector engine

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:25:15+00:00Added an answer on May 23, 2026 at 1:25 pm

    Here is a good Article

    http://www.programmervn.com/2010/11/30-css-selectors-you-must-memorize-part.html

    http://www.programmervn.com/2010/11/30-css-selectors-you-must-memorize-part_17.html

    Extract:

    Here’s a special one that’ll impress
    your friends. Not too many people know
    about this trick. The tilda (~) symbol
    allows us to target an attribute which
    has a spaced-separated list of values.

    Going along with our custom attribute
    from number fifteen, above, we could
    create a data-info attribute, which
    can receive a space-separated list of
    anything we need to make note of. In
    this case, we’ll make note of external
    links and links to images — just for
    the example.

    <a href="http://x.y.com/path/to/image.jpg" 
    data-info="external image">Link to image on another server</a>
    

    With that markup in place, now we can target any tags that have either of those values, by using the ~ attributes selector trick.

    /* Target data-info attr that contains the value "external" */
    a[data-info~="external"] {
       color: red;
    }
    
    /* And which contain the value "image" */
    a[data-info~="image"] {
      border: 1px solid black;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Rails 3.2.0 with haml and sass: I Would like to link an external
Using Server.Transfer to show a page that informs the user that the web site
Using WebViewBrush I can render web page content (it's screen shot) to e.g. Rectangle
Using Jenkins or Hudson I would like to create a pipeline of builds with
Using report builder 3.0, I have a report that queries a cube. How do
Using Entity Framework CodeFirst, how do I create a created datetime column that gets
Using gcc and ld on x86_64 linux I need to link against a newer
Using CRM 4, I have an entity form that contains a tab with an
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.