Fetch <object data="..."> resources using the same pipeline as <img src="...">. When the resource loads successfully, render it as a replaced element and suppress children (fallback content). When loading fails, children render normally as fallback. This enables the Acid2 3-level <object> fallback chain pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
350 B
HTML
12 lines
350 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head><title>Object fallback chain</title></head>
|
|
<body>
|
|
<object data="nonexistent-outer.png">
|
|
<object data="nonexistent-middle.png">
|
|
<object data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==">ERROR</object>
|
|
</object>
|
|
</object>
|
|
</body>
|
|
</html>
|