<?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>10733</bug_id>
          
          <creation_ts>2006-09-04 13:58:37 -0700</creation_ts>
          <short_desc>Dynamically appending items to ol/ul lists doesn&apos;t work in XHTML</short_desc>
          <delta_ts>2006-10-02 07:34:20 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>8007</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54793</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-09-04 13:58:37 -0700</bug_when>
    <thetext>For XHTML documents, appending new items produces broken results - the new items all go in one line lacking a list marker.

When examining the resulting document in Inspector, errors are logged to the console:

/Users/ap/WebKit/WebCore/bindings/objc/WebScriptObject.mm:198:[8444]  JavaScript exception:  Null value</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54794</commentid>
    <comment_count>1</comment_count>
      <attachid>10394</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-09-04 13:58:57 -0700</bug_when>
    <thetext>Created attachment 10394
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56911</commentid>
    <comment_count>2</comment_count>
    <who name="DenisBB">brightbeat451</who>
    <bug_when>2006-10-02 03:37:29 -0700</bug_when>
    <thetext>I had the same problem when I was trying to add with appendChild and createElement (JavaScript) new elemnts to DOM of XHTML valid document (application/xhtml+xml). I enabled DEBUG in Safari (not webkit) and looked at the code of the page. it showed me that if i try to add link to a page it 4example adds this code &quot;&lt;a href=&quot;link&quot;/&gt;text&lt;/a&gt;&quot;. the same thing with paragraph it adds &quot;&lt;p/&gt;text&lt;/p&gt;&quot;.
So the problem is that it adds to opening tag &quot;/&quot; at the end of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56924</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-10-02 07:34:20 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 8007 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>10394</attachid>
            <date>2006-09-04 13:58:57 -0700</date>
            <delta_ts>2006-09-04 13:58:57 -0700</delta_ts>
            <desc>test case</desc>
            <filename>dynamic-list.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>435</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgo8aGVhZD4KPHRpdGxl
Lz4KCjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4KZnVuY3Rpb24gbG9nKG1lc3NhZ2Up
IHsKICB2YXIgaXRlbSA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoImxpIik7CiAgaXRlbS5hcHBl
bmRDaGlsZChkb2N1bWVudC5jcmVhdGVUZXh0Tm9kZShtZXNzYWdlKSk7CiAgZG9jdW1lbnQuZ2V0
RWxlbWVudEJ5SWQoImNvbnNvbGVfbWVzc2FnZXMiKS5hcHBlbmRDaGlsZChpdGVtKTsKfQoKZnVu
Y3Rpb24gdGVzdCgpIHsKICBsb2coIjMiKTsKICBsb2coIjQiKTsKfQo8L3NjcmlwdD4KCjwvaGVh
ZD4KPGJvZHkgb25sb2FkPSJ0ZXN0KCkiPgo8b2wgaWQ9ImNvbnNvbGVfbWVzc2FnZXMiPjxsaT4x
PC9saT48bGk+MjwvbGk+PC9vbD4KPC9ib2R5PjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>