[Webkit-unassigned] [Bug 20776] New: Incompatibility with FF when handle 'object' tag
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 10 20:23:39 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20776
Summary: Incompatibility with FF when handle 'object' tag
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://j2e.com/new&beta
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: feng.qian.webkit at gmail.com
The reported URL works in FF and not in Safari. The expected behavior in FF is
that, after editing the text area, and close the window, it should alert the
user whether s/he wants to discard changes.
In Safari, the JS code of 'document.j2e.changed()' throws an exception because
'document.j2e' is undefined. The HTML source is incorrect in this case. It
looks like
<object id="j2e" ... >
<param> ...
<param>
some text here
It misses </object> to close the tag. WebKit determines that an
HTMLObjectElement is not a docNamedNode (see code in
HTMLObjectElement::updateDocNamedItem) because it thinks
the object element has child that's text node and with non-whitespace texts.
I did further test by closing <object> with </object>, but put some text
between, or put a non-param tag between. FF allows 'document.j2e' but Safari
doesn't.
After chatting with Maciej in IRC channel, he mentioned the rule for
HTMLObjectElement was to handle a common error (?) that <embed> element is put
between <object> and </object>.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list