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."