回答編集履歴
1
tuiki
test
CHANGED
@@ -13,3 +13,35 @@
|
|
13
13
|
</pre>
|
14
14
|
|
15
15
|
```
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
# sample
|
20
|
+
|
21
|
+
```javascript
|
22
|
+
|
23
|
+
<script>
|
24
|
+
|
25
|
+
window.addEventListener('DOMContentLoaded', ()=>{
|
26
|
+
|
27
|
+
[].forEach.call(document.querySelectorAll('.error'),x=>{
|
28
|
+
|
29
|
+
x.parentNode.insertBefore(document.createElement('br'),x.nextElementSibling);
|
30
|
+
|
31
|
+
});
|
32
|
+
|
33
|
+
});
|
34
|
+
|
35
|
+
</script>
|
36
|
+
|
37
|
+
<body>
|
38
|
+
|
39
|
+
<span class="error">エラー1</span>
|
40
|
+
|
41
|
+
<span class="error">エラー2</span>
|
42
|
+
|
43
|
+
<span class="error">エラー3</span>
|
44
|
+
|
45
|
+
</body>
|
46
|
+
|
47
|
+
```
|