<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>20776</bug_id>
          
          <creation_ts>2008-09-10 20:23:39 -0700</creation_ts>
          <short_desc>Incompatibility with FF when handle &apos;object&apos; tag</short_desc>
          <delta_ts>2008-09-10 20:27:22 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>20775</dup_id>
          
          <bug_file_loc>http://j2e.com/new&amp;beta</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Feng Qian">feng</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90817</commentid>
    <comment_count>0</comment_count>
    <who name="Feng Qian">feng</who>
    <bug_when>2008-09-10 20:23:39 -0700</bug_when>
    <thetext>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 &apos;document.j2e.changed()&apos; throws an exception because &apos;document.j2e&apos; is undefined. The HTML source is incorrect in this case. It looks like

&lt;object id=&quot;j2e&quot; ... &gt;
&lt;param&gt; ...
&lt;param&gt;

some text here

It misses &lt;/object&gt; 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&apos;s text node and with non-whitespace texts.

I did further test by closing &lt;object&gt; with &lt;/object&gt;, but put some text between, or put a non-param tag between. FF allows &apos;document.j2e&apos; but Safari doesn&apos;t.

After chatting with Maciej in IRC channel, he mentioned the rule for HTMLObjectElement was to handle a common error (?) that &lt;embed&gt; element is put between &lt;object&gt; and &lt;/object&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90819</commentid>
    <comment_count>1</comment_count>
    <who name="Feng Qian">feng</who>
    <bug_when>2008-09-10 20:27:22 -0700</bug_when>
    <thetext>Sorry, hit back button, submitted twice.

*** This bug has been marked as a duplicate of 20775 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>