WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 20775
20776
Incompatibility with FF when handle 'object' tag
https://bugs.webkit.org/show_bug.cgi?id=20776
Summary
Incompatibility with FF when handle 'object' tag
Feng Qian
Reported
2008-09-10 20:23:39 PDT
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>.
Attachments
Add attachment
proposed patch, testcase, etc.
Feng Qian
Comment 1
2008-09-10 20:27:22 PDT
Sorry, hit back button, submitted twice. *** This bug has been marked as a duplicate of
20775
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug