docs(10_Wiki): Dev 폴더 누락분 반영 — Topic_Programming으로 통합

이전 재구성 작업에서 Dev/ 폴더가 누락되었던 것을 반영.

- Dev/Topic_Programming(중첩 폴더, 78개)은 Dev 자체 최상위 폴더들
  (Architecture/Conventions/Engineering_Intelligence 등)과 완전 중복이라 제거.
- Dev 최상위 엔지니어링 지식 폴더(Architecture/Conventions/Engineering_Intelligence/
  Failure_Library/Generalized_Principles/Language/Pattern_Catalog/Platform_Guides/
  Subsystems, 77개)는 이미 Topic_Programming/Topic_Programming에 더 최신 버전이
  존재해 중복 제거(고유 콘텐츠 1개는 예외 처리하여 이동 보존).
- Dev의 W3Schools 언어 튜토리얼 폴더(Topic_C/CPP/CSS/CSharp/HOWTO/HTML/Java/
  JavaScript/PHP/Python/SQL/W3CSS, 1201개)는 전부 Topic_Programming 하위로 이동.
- 에이전트 운영 상태(.astra/docs)는 그대로 유지, 콘텐츠 폴더만 정리.
- Topic_Programming 최종 문서 수: 2784 → 3985.
This commit is contained in:
Antigravity Agent
2026-07-05 00:39:13 +09:00
parent 9148c358d0
commit e9cbf23ab5
1356 changed files with 0 additions and 12831 deletions
@@ -0,0 +1,90 @@
---
id: javascript-html-dom
title: "JavaScript HTML DOM"
category: "Frontend"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["HTML DOM", "Document Object Model", "DOM tree", "DOM nodes", "HTML Document Object Model"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.88
created_at: 2026-06-23
updated_at: 2026-06-23
review_reason: ""
merge_history: []
tags: ["javascript", "js", "web", "frontend", "w3schools", "dom"]
raw_sources: ["https://www.w3schools.com/js/js_htmldom.asp"]
applied_in: []
github_commit: ""
---
# [[JavaScript HTML DOM]]
## 🎯 한 줄 통찰 (One-line insight)
The HTML DOM is an object model that represents an HTML page as a tree of nodes, giving JavaScript a standardized way to access and change every element on the page. [S1]
## 🧠 핵심 개념 (Core concepts)
- **The HTML DOM is an Object Model for HTML Documents** — it represents an HTML page as a tree of nodes. [S1]
- **The browser builds the tree on load** — when a webpage loads, the browser creates a tree-like representation of the document made of nodes: Document, Element nodes (such as `<html>`, `<body>`, `<a>`), Attribute nodes, and Text nodes. [S1]
- **Three roles in one access expression** — `id="demo"` is an HTML property, `getElementById()` is a DOM method, and `innerHTML` is a DOM property. [S1]
- **The DOM is a W3C Standard** — defined by the World Wide Web Consortium in three parts: Core DOM, XML DOM, and HTML DOM. [S1]
## 🧩 추출된 패턴 (Extracted patterns)
- **Access then modify** — get a node reference with a DOM method, then read or write a DOM property on it. [S1]
- **Tree traversal mindset** — because the page is a tree of nodes, navigation and manipulation are expressed in terms of elements, attributes, and text nodes. [S1]
## 📖 세부 내용 (Details)
**The HTML DOM** [S1]
The HTML DOM (HTML Document Object Model) is an Object Model for HTML Documents. It represents an HTML page as a tree of nodes. [S1]
**The DOM Tree** [S1]
When a webpage loads, the browser creates a tree-like representation of the document. This tree is made of nodes for the different parts of the document: the Document node, Element nodes (for example `<html>`, `<body>`, `<a>`), Attribute nodes, and Text nodes. [S1]
**Accessing HTML Elements** [S1]
HTML elements are accessed through the document. The following example accesses a paragraph element by its id and changes its content: [S1]
```javascript
// Access a paragraph Element
const myPara = document.getElementById("demo");
// Change the content of the Element
myPara.innerHTML = "Hello World!";
```
In this example, `id="demo"` is an HTML property, `getElementById()` is a DOM method, and `innerHTML` is a DOM property. [S1]
**What You Will Learn** [S1]
The tutorial covers how to: change the content of HTML elements, change the style (CSS) of HTML elements, add and delete HTML elements, and react to HTML events. [S1]
**The World Wide Web Consortium** [S1]
The DOM is a W3C Standard (World Wide Web Consortium). The W3C DOM standard is separated into three parts: Core DOM, XML DOM, and HTML DOM. [S1]
## 🛠️ 적용 사례 (Applied in summary)
The page's own snippet — selecting `#demo` with `getElementById()` and assigning to `innerHTML` — is the canonical applied example. No external project/commit applications found in the source.
## 💻 코드 패턴 (Code patterns)
Access an element by id and change its content (language: JavaScript):
```javascript
const myPara = document.getElementById("demo");
myPara.innerHTML = "Hello World!";
```
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
No contradictions found in the source.
## ✅ 검증 상태 및 신뢰도
- **상태:** draft
- **검증 단계:** conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
- **신뢰 점수:** 0.88
- **중복 검사 결과:** 신규 생성 (New discovery)
## 🔗 지식 그래프 (Knowledge Graph)
- **상위/루트:** [[JavaScript Tutorial]]
- **관련 개념:** [[JavaScript DOM Methods]], [[JavaScript DOM Elements]], [[JavaScript DOM Changing HTML]], [[JavaScript Introduction]]
- **참조 맥락:** The foundational model referenced by every DOM manipulation, styling, and event topic.
## 📚 출처 (Sources)
- [S1] W3Schools — JavaScript HTML DOM — https://www.w3schools.com/js/js_htmldom.asp
## 📝 변경 이력 (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "JavaScript HTML DOM" page (Astra wiki-curation, P-Reinforce v3.1 format).