Summary: | Appending text with jQuery append() sometimes has no visible effect | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alex Ford <Alex> | ||||
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | mitz | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
URL: | http://stackoverflow.com/questions/4265710/i-need-a-workaround-for-a-safari-chrome-bug-that-is-becoming-a-thorn-in-my-side | ||||||
Attachments: |
|
Description
Alex Ford
2010-11-24 08:52:50 PST
In the future, please post all relevant information in Bugzilla. Making everyone click through a link to an external site just wastes time. I can reproduce this bug in Safari 5.0.3 on Mac and with nightlies. Steps to reproduce: 1) Open http://www.jsfiddle.net/Chevex/6n5VV/ 2) Observe text being automatically typed. Typing often stops midway. Resizing the browser window makes the rest of the text appear. Created attachment 74896 [details]
test case
Attaching the same test case, modified to reference uncompressed jQuery.
As a side note, it's quite inefficient to add text with append() - it adds a separate text node for every character, meaning there will be lots.
Your note about .append() being inefficient is irrelevant as this bug happens even if you use .html(.html() + newHtml); Also, noted about using external links to discuss a bug. I just already put so much info over there that I felt it redundant to include it twice when I could just link. |