Status: Unconfirmed Owner: all-bugs-t...@chromium.org Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 6035 by matterhorn: Chrome incorrectly encodes % to % in width, height etc. attributes when saving pages http://code.google.com/p/chromium/issues/detail?id=6035 Chrome Version : latest as of Jan 5th 2008 URLs (if applicable) : Other browsers tested: Add OK or FAIL after other browsers where you have tested this issue: Safari 3: Firefox 3: OK IE 7: OK What steps will reproduce the problem? 1. Copy the HTML code below to a text file table.html 2. Open table.html in Chrome 3. Save currently viewed file as table_saved.html 4. Open table_saved.html in Firefox 3 What is the expected result? The table size should be 100% of window width when viewing table_saved.html in Firefox 3. What happens instead? The table size is rendered as 100 pixel wide by Firefox as Chrome has encoded the table width of 100% into 100% when saving the page. Some more details: When saving a web page with Chrome, each occurrence of a percent sign(%) is encoded as %. This leads to problems in attribute values like table width, where <table width="100%" ...> becomes <table width="100%" ...> when saving the page with Chrome. While Chrome still renders the saved page correctly, Firefox 3 interprets the saved table width "100%" as "100" pixels and renders the table too small. I don't think that Chrome should encode the percent sign (%) as the HTML entity % in width, length, height and other HTML entity attribute size values when saving a web page. A test HTML page (for testing Chrome's save behaviour): --- test-table-100percent.html <html> <head><title>Chrome Table Save Debug Test Case</title></head> <body> <p>This table has 100% width specified. After saving the web page as file with Chrome, this\r\n becomes 100&percnt; and the tables renders 100 pixel wide when loaded in Firefox 3.</p> <table width="100%" border=1 cellspacing=0 cellpadding=0> <tr><td bgcolor="333366" ><p><font color="#FFFFFF"> <font size="+1">A long title</font></font></p></td></tr><tr><td> <p>This table has width 100% before being saved as file.</p></td></tr></table> </body> </html> --- -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---