Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object tag can't display when it has child element #1276

Open
hehonghui opened this issue May 14, 2024 · 0 comments
Open

object tag can't display when it has child element #1276

hehonghui opened this issue May 14, 2024 · 0 comments

Comments

@hehonghui
Copy link

object tag can't display when it has child element

When the 'object' tag contains child elements, its internal elements will not be displayed, as shown in the following code.

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:epub="http://www.idpf.org/2007/ops">

<head>
    <meta charset="utf-8">
    </meta>
    <title>Phases of the Moon</title>
</head>

<body>
    <section id="ch1">
        <h1>Phases of the Moon</h1>
        <object data="moon-phases.xml" type="application/x-epub-figure-gallery" id="moon-figures">
            <!-- CAN'T DISPLAY -->
            <figure class="fallback" id="f1">
                <img src="1.new-moon.jpg" id="img_1" />
                <figcaption>
                    <h2>New Moon</h2>
                    <p>By the modern definition, New Moon occurs when the Moon and Sun are at the same geocentric ecliptic longitude. The part of the Moon facing us is completely in shadow then. Pictured here is the traditional New Moon, the earliest visible waxing crescent, which signals the start of a new month in many lunar and lunisolar calendars.</p>
                </figcaption>
            </figure>
        </object>
        <div id="moon-text">
            <p>When the Sun and Moon are aligned on the same side of the Earth the Moon is "new", and the side of the Moon visible from Earth is not illuminated by the Sun. As the Moon waxes (the amount of illuminated surface as seen from Earth is increasing), the lunar phases progress from new moon, crescent moon, first-quarter moon, gibbous moon and full moon phases, before returning through the gibbous moon, third-quarter (or last quarter) moon, crescent moon and new moon phases. The terms old moon and new moon are interchangeable, although new moon is more common. Half moon is often used to mean the first- and third-quarter moons, while the term 'quarter' refers to the extent of the moon's cycle around the Earth, not its shape.</p>
        </div>
    </section>
</body>

</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant