Closed Fil closed 3 weeks ago
The reason that <observablehq-loading>
doesn’t get removed is because in SVG, element names are case-sensitive: the client is looking for the tag name OBSERVABLEHQ-LOADING
, but in SVG the tag name is observablehq-loading
. But more importantly, the <observablehq-loading>
doesn’t do anything within an SVG element. (I don’t think custom elements are supported within SVG? But certainly the CSS rules we’re using for the loading indicator don’t work in this context.)
So probably we should remove the <observablehq-loading>
during the HTML sanitization step where we currently check for reparenting.
This adds tests for:
1433
1434
1435
1436
1437
1415
Regarding the SVG placeholder test, I wonder if it's fully working: I'd expect the
<observablehq-loading></observablehq-loading>
element to be removed oncehello
is inserted in the DOM. It does not seem to be the case?