Bug 10733

Summary: Dynamically appending items to ol/ul lists doesn't work in XHTML
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: mitz
Priority: P2 Keywords: HasReduction
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
test case none

Description Alexey Proskuryakov 2006-09-04 13:58:37 PDT
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
Comment 1 Alexey Proskuryakov 2006-09-04 13:58:57 PDT
Created attachment 10394 [details]
test case
Comment 2 DenisBB 2006-10-02 03:37:29 PDT
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 "<a href="link"/>text</a>". the same thing with paragraph it adds "<p/>text</p>".
So the problem is that it adds to opening tag "/" at the end of it.
Comment 3 mitz 2006-10-02 07:34:20 PDT

*** This bug has been marked as a duplicate of 8007 ***