Summary: | innerHTML incorrectly converts '>' characters which is not parts of html tags | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Joongi Kim <me+dev> | ||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED WORKSFORME | ||||||
Severity: | Normal | CC: | ap | ||||
Priority: | P2 | ||||||
Version: | 525.x (Safari 3.2) | ||||||
Hardware: | Mac (Intel) | ||||||
OS: | OS X 10.5 | ||||||
URL: | http://dev.textcube.org/ticket/1061 | ||||||
Attachments: |
|
Description
Joongi Kim
2009-01-16 05:43:01 PST
Created attachment 26791 [details]
innerHTML bug example
You can see how webkit is confused with entity conversion of innerHTML.
Comment on attachment 26791 [details]
innerHTML bug example
Expected result (from Mozilla Firefox 3.0.5):
asdf<asdf><br>
asdf<asdf><br>
asdf<asdf>><br>
asdf<asdf><br>
</asdf></asdf>>
Actual Result:
asdf<asdf><br>
asdf<asdf><br>
asdf<asdf>><br>
asdf<asdf><br>
</asdf></asdf>>
This problem happens also in Google Chrome 1.0.154.43. I see the following with TOT: asdf<asdf><br> asdf<asdf><br> asdf<asdf>><br> asdf<asdf><br> </asdf></asdf>> That matches what Firefox gives. Please also note that the previous WebKit behavior was formally correct, too - there is no fundamental reason to convert > to >, it's just something other browser do. Yes, there's no problem with NOT converting closing '>' to '>', but some users of Textcube which I develope complain of this behaviour. (They and we didn't know before that this is a specific behaviour of Webkit.) Also I'm not sure that this behaviour may affect the backup-restore format called TTXML which has possibilities of contents processed by plain HTML <-> our own markup syntax conversion routines using innerHTML. We hope there be no side-effects from this. |