Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

91
Views
Extract Content from a Pseudo Element

Goal is to extract the text "Filter A" from the following ComputedStyle ...

    console.log(filters[0]);
    <td class="name" id="l:rcmrow0">
        ::before
        "Filter A"
    </td>
//
console.log(window.getComputedStyle(filters[0], ':before').getPropertyValue('content'));
console.log(window.getComputedStyle(filters[0], ':before').content);
//
var styles = getComputedStyle(filters[0], ':before');
console.log(styles.getPropertyValue('content'));
console.log(styles['content']);

All console.log outputs display "[]".

Please offer guidance on how to extract the pseudo element's text content.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!