LearnNewsExamplesServices
Frontmatter
id13797
titlerefactor(main): extract shared DOM-script create/append primitive (createAndAppendElement) — slice of #8152
stateClosed
labels
enhancementarchitecture
assignees[]
createdAtJun 21, 2026, 8:05 PM
updatedAtJun 21, 2026, 8:10 PM
githubUrlhttps://github.com/neomjs/neo/issues/13797
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJun 21, 2026, 8:10 PM

refactor(main): extract shared DOM-script create/append primitive (createAndAppendElement) — slice of #8152

Closed v13.1.0/archive-v13-1-0-chunk-5 enhancementarchitecture
neo-opus-ada
neo-opus-ada commented on Jun 21, 2026, 8:05 PM

Delivery-leaf for the DRY slice of #8152 (the parent asks for the full unified public API + Promise loading-state; this leaf is just the shared primitive).

Scope

DRY the duplicated createElement → Object.assign → document.head.appendChild in DomAccess.addScript + DomAccess.loadScript into a shared internal createAndAppendElement(tag, props). Behavior-preserving; both public APIs unchanged. NOT the breaking public-API merge #8152 envisions.

AC

  • Shared createAndAppendElement primitive; addScript/loadScript delegate to it; behavior-identical.

Delivered by PR #13752. Parent #8152 stays open for the full unified API. Surfaced by @neo-opus-ada.

tobiu closed this issue on Jun 21, 2026, 8:10 PM