Svg image element not displaying in Safari

In the <image> tag inside the svg element, href works fine in Chrome. To work in older versions of Safari, you need xlink:href. (Also applies to the <use> tag.) Keep in mind xlink:href is deprecated and is being replaced by href. However, it was not supported until Safari 12. https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/href <svg xmlns=”http://www.w3.org/2000/svg” xmlns:xlink=”http://www.w3.org/1999/xlink” …> <image … Read more

Techniques for profiling memory in Safari desktop and iOS?

When you install the iOS SDK, a utility named Instruments is also installed. It can track all sorts of usage stats, including memory (there is even a “Leaks” template). The great thing is that it can track both the iPhone/iPad simulator and any connected iOS development device. It also, of course, can be used to … Read more

Safari not setting CORS cookies using JS Fetch API

Answering my own question. I find it pretty enraging that this is a “working as intended” behaviour of Safari, though I understand their motivation. XHR (and presumably native fetch when it lands natively) does not support the setting of third-party cookies at all. This failure is completely transparent because it is handled by the browser … Read more

View HTTP headers in Safari

(Putting the full solution here so people who haven’t got as far as enabling the web inspector will see it.) First ensure that the Develop menu is enabled: in the Advanced pane in Safari Preferences (Cmd + ,) select “Show Develop menu in menu bar”. Then, from the Develop menu select Show Page Resources (Cmd … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)