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:
@@ -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);
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user