Bug 255693

Summary: Empty object tag swallows all following content
Product: [Applications] konqueror Reporter: Christopher Yeleighton <giecrilj>
Component: khtml xmlAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: groot
Priority: NOR    
Version First Reported In: 4.4.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christopher Yeleighton 2010-10-30 20:48:00 UTC
Version:           4.4.4 (using KDE 4.4.4) 
OS:                Linux

Konqueror does not close <object /> in XML mode.

Reproducible: Always

Steps to Reproduce:
1. 
Render the following document in Konqueror:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
><head
><title>Empty object tag swallows all following content</title></head
><body 
><div 
><object data="about:blank" /></div
><p 
>This text is invisible in Konqueror!</p
></body></html>

Actual Results:  
1. 
Empty page.

Expected Results:  
1. 
"This text is invisible in Konqueror!"

OS: Linux (x86_64) release 2.6.34.7-0.5-desktop
Compiler: gcc

Workaround: replace <object /> with <object ></object >.

This bug prevents Konqueror from rendering any content at docs.redhat.com!
Comment 1 Maksim Orlovich 2010-10-30 22:15:36 UTC
Any specific URL on the RedHat site it looks fine to me on first inspection? (The reason I ask is that the mimetype matters a lot)
Comment 2 Maksim Orlovich 2010-10-30 22:16:02 UTC
Any specific URL on the RedHat site --- it looks fine to me on first inspection? (The reason I ask is that the mimetype matters a lot)
Comment 3 Christopher Yeleighton 2010-10-31 09:26:35 UTC
I get this bug on a local file, index.xml.
Comment 5 groot 2012-07-20 23:42:48 UTC
The sample document:

- validates in the w3c validator (with a single warning about encoding)
- shows no content (the paragraph with "this content is invisible") in the window with Konqueror from KDE 4.4.4, as reported. The document title is set, as expected.
- shows no content with Konqueror from KDE 4.7.2, either
- shows no content in Firefox 12, either (which perhaps suggests that the bug isn't just Konqueror, or that empty object-element behavior is special)
- if you replace the <object /> with <object></object>, the page displays as expected in both Konqueror 4.7.2 and Firefox 12
- if you replace the "about:blank" in the object element with "about:plugins", then behavior starts to differ: Konqueror 4.7.2 still displays nothing, while Firefox 12 displays the expected tekst (but in a different spot that it does with about:blank).
Comment 6 Christoph Cullmann 2024-05-06 20:59:22 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann