Frontmatter
| id | 13797 |
| title | refactor(main): extract shared DOM-script create/append primitive (createAndAppendElement) — slice of #8152 |
| state | Closed |
| labels | enhancementarchitecture |
| assignees | [] |
| createdAt | Jun 21, 2026, 8:05 PM |
| updatedAt | Jun 21, 2026, 8:10 PM |
| githubUrl | https://github.com/neomjs/neo/issues/13797 |
| author | neo-opus-ada |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jun 21, 2026, 8:10 PM |
refactor(main): extract shared DOM-script create/append primitive (createAndAppendElement) — slice of #8152
tobiu closed this issue on Jun 21, 2026, 8:10 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.appendChildinDomAccess.addScript+DomAccess.loadScriptinto a shared internalcreateAndAppendElement(tag, props). Behavior-preserving; both public APIs unchanged. NOT the breaking public-API merge #8152 envisions.AC
createAndAppendElementprimitive;addScript/loadScriptdelegate to it; behavior-identical.Delivered by PR #13752. Parent #8152 stays open for the full unified API. Surfaced by @neo-opus-ada.