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

257
Views
JS DOM - Change CSS ::before

enter image description here

i would like to get the css part in a other element.

i tried with the following code:

      y = h.createElementNS("urn:oasis:names:tc:opendocument:xmln:text:1.0", "text:list")
        z = h.createElementNS("urn:oasis:names:tc:opendocument:xmlns:text:1.0", "text:list-item")
        w = h.createElementNS("urn:oasis:names:tc:opendocument:xmlns:text:1.0","text:p")
        document.styleSheets[0].insertRule('.bulletPoint::before { content: testABC ; }')
       // dz = h.createElementNS("urn:oasis:names:tc:opendocument:xmlns:text:1.0","text:span")
        // dz.innerHTML= TestInner
        w.setAttributeNS("urn:oasis:names:tc:opendocument:xmlns:text:1.0", "text:style-name", "T2")
     //   text:style-name="T2"
        w.innerHTML = TestInner
      //  w.appendChild(TextContent)
      
        w.setAttributeNS("urn:oasis:names:tc:opendocument:xmlns:text:1.0", "text:style-name", "P1")
         y.setAttributeNS("urn:oasis:names:tc:opendocument:xmlns:text:1.0", "text:style-name", 'L3')
         z.setAttribute( 'text|list[webodfhelper|counter-id="Ylist2793688918-level1-1"] > text|list-item > :not(text|list):first-child::before', 'content: "•"')
        // y.setAttributeNS("urn:oasis:names:tc:opendocument:xmlns:text:1.0", "text:continue-numbering", 'true')
         y.setAttributeNS("urn:oasis:names:tc:opendocument:xmlns:text:1.0", "counter-id", 'Ylist91444039228942-level1-1')
         w.setAttribute("class","bulletPoint")
      

i get a error code i means "|" ist not allwod in the followring step: " z.setAttribute( 'text|list[webodfhelper|counter-id="Ylist2793688918-level1-1"] > text|list-item > :not(text|list):first-child::before', 'content: "•"')"

can someone help me to get a line " z.setAttribute( 'text|list[webodfhelper|counter-id="Ylist2793688918-level1-1"] > text|list-item > :not(text|list):first-child::before', 'content: "•"')" in the "::before" statement of "z."

in my case i miss the bulletPoint:enter image description here

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!