Closed
Bug 302892
Opened 19 years ago
Closed 19 years ago
HTML/SVG/<object> Using <Object> tag to diplay svg document stops the display of following text.
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: kingaj, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050731 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050731 Firefox/1.0+ Using <Object> tag to diplay svg document stops the display of following text. Reproducible: Always Steps to Reproduce: Browse a web page with the folling markup: <html> <head></head> <body> Some text before <object data="an_SVG_file.svg" type="image/svg+xml" /> Some text after </html> Actual Results: The text "Some text before" and the svg image file dipslayed fine. The text "Some text after" was missing. Expected Results: Displayed the text "Some text before"; then the image; and then the text "Some text after" A have put this in as a 'Normal' severity bug but I not so sure I should not have classified it as a 'Critical' even thought the simple workaround is to use <embed>. It gives a very bad impression of what has been acheived so far in the SVG project. As a newbie to all this web stuff if this had been the first bug I hit I probably would have probably ingnored the alpha as unusable for mere mortals . Fortunatly I used <embed> fisrt.
| Reporter | ||
Comment 1•19 years ago
|
||
Just had another look at this and tried <object data="myGif.gif" type="image/gif" /> instead of <object data="mySVG.svg" type="image/svg+xmt" /> This also kills the display any text that follow it so it looks like I attributed to bug to the wrong component but I'm not sure what component to attribute it to now.
Comment 2•19 years ago
|
||
Andrew, this is invalid. The 'object' element is not an empty element so you need to close it explicitly with a closing </object> tag, not with a slash in the opening tag. If you don't the object element isn't closed, and the content that comes after is treated as alternative content (and since we recognise image/svg+xml and image/gif it won't be rendered).
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•