Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

264
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda