test(B05): 배수 시험 가짜 DOM 에 setAttribute — 부품 단 data-size (PLAN 553-2)

- helper_349 · helper_510 가짜 요소가 setAttribute 를 받게 함(baea63804 단추 단 표기)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 22:59:18 +09:00
co-authored by Claude Opus 5.5
parent baea638043
commit 376701d174
2 changed files with 6 additions and 0 deletions
@@ -34,6 +34,9 @@ function el(tag) {
replaceChildren(...kids) {
this.children = kids;
},
setAttribute(name, value) {
(this.attrs ??= {})[name] = String(value);
},
addEventListener(type, fn) {
(this.listeners[type] ??= []).push(fn);
},
+3
View File
@@ -24,6 +24,9 @@ function el(tag) {
node.children = [];
node.append(...items);
},
setAttribute(name, value) {
(this.attrs ??= {})[name] = String(value);
},
addEventListener(type, fn) {
(listeners[type] ??= []).push(fn);
},