Implement DOM-JS bridge: node manipulation and properties
Add comprehensive DOM node manipulation methods and property access
from JavaScript, building on the existing DOM-JS bridge architecture.
Tree manipulation: appendChild, removeChild, insertBefore, replaceChild,
cloneNode, hasChildNodes. Content properties: textContent (get/set),
innerHTML (get/set with HTML parsing), outerHTML. Attribute methods:
getAttribute, setAttribute, removeAttribute, hasAttribute, attributes.
Navigation: parentNode, parentElement, childNodes, children, firstChild,
lastChild, firstElementChild, lastElementChild, nextSibling,
previousSibling, nextElementSibling, previousElementSibling.
Style: element.style object with camelCase CSS property access that
syncs to the inline style attribute. classList: add, remove, toggle,
contains methods that modify the class attribute.
Dynamic properties are resolved via VM interception in GetProperty and
SetProperty handlers, ensuring navigation and content properties always
reflect the current DOM state after modifications.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
authored by
pierrelf.com
tangled.org
3d85d01e
226d1b4d