Comment #15 on issue 4119 by rolandst...@google.com: Page saved incorrectly.
http://code.google.com/p/chromium/issues/detail?id=4119

The reason that google.tt fails to save properly is that the logo is  
displayed using
a DIV with style="background:url(/intl/en_com/images/logo_plain.png)
no-repeat;height:110px;width:276px". On saving, this relative (!) path URL  
isn't
properly adapted.

Fixing this would involve properly parsing all "style" attributes and all  
<style>
element contents for 'url(' attribute values, parsing their contents,  
getting and
saving the corresponding resources, and rebasing the 'url(' contents with  
the saved
resource path.

Doing this properly would likely mean some refactoring in the CSS parser  
interface.
Alternatively one could maybe do a quick RegEx hack to locate 'url('  
strings. This is
not quite as safe, though.

Technically, we would also need to parse JavaScript code in case some style  
gets
replaced with a different 'url(' value (except when the URL is dynamically
constructed, then we're probably SOL).




--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to