Kartographer Reparse Test
Görünüm
Kartographer innerHTML Re-Parse Test
This page demonstrates phab:T401606: nested <a> inside the mapframe container breaks when the HTML is re-parsed (e.g. by Vue's v-html).
How to test
- Wait for the map to fully load (you should see Arhavi with a blue marker)
- Open browser console (F12)
- Run:
var m=document.querySelector('.mw-kartographer-map'), p=m.parentElement; console.log('BEFORE:', m.querySelectorAll('a').length, 'anchors'); p.innerHTML=p.innerHTML; var m2=p.querySelector('.mw-kartographer-map'); console.log('AFTER:', m2?m2.querySelectorAll('a').length:'GONE', 'anchors'); - The map will break apart — tiles, zoom controls, and attribution will be ejected from the container
