we (web engine): Experimental web browser project to understand the limits of Claude

Implement DOM-JS bridge: node manipulation and properties #280

Open pierrelf.com
targeting main
Open opened by and assigned to pierrelf.com
targeting main

Implements issue 3mhyfmx5ucc2g

Summary #

  • Tree manipulation methods: appendChild, removeChild, insertBefore, replaceChild, cloneNode, hasChildNodes
  • Content properties: textContent (get/set), innerHTML (get/set with HTML parsing), outerHTML (get)
  • Attribute methods: getAttribute, setAttribute, removeAttribute, hasAttribute, attributes array
  • Navigation properties: parentNode, parentElement, childNodes, children, firstChild, lastChild, firstElementChild, lastElementChild, nextSibling, previousSibling, nextElementSibling, previousElementSibling
  • element.style object with camelCase CSS property access (syncs to inline style attribute)
  • element.classList with add, remove, toggle, contains methods
  • VM interception for dynamic DOM property get/set (navigation and content always reflect current DOM state)
  • 36 new tests covering all acceptance criteria

Phase 11 — DOM-JS Bindings (issue 3 of 8).

This pull request has no versions submitted yet.