Intro Chrome 126 ã§çè ãå®è£ ãã URL.parse ã Ship ãããã Chromium ã«ã³ã³ããªãã¥ã¼ããããã¨ã¯ä½åããã£ãããåä½æ©è½ã Ship ããã®ã¯åãã¦ã ã£ãã invalid URL ã®å¦ç new URL() ã«ãã£ã¦ãæååã® URL ããã¼ã¹ãããã¨ãã§ããããã«ãªã£ã¦ä¹ ãããããã® API 㯠invalid ãªå ´åã«ä¾å¤ãæããã ä¾å¤å¦çãããããããå ã« URL ã¨ãã¦ãã¼ã¹å¯è½ãã©ãããç¥ãããã® URL.canParse() ãææ¡ãããå ã«å®è£ ãé²ãã ã URL.canParse(str) // boolean ããããããã§ã¯äºåãã¼ã¹ãå¿ è¦ã«ãªãããç¡é§ãå¤ãã if (URL.canParse(str)) { // 1 åç®ã®ãã¼ã¹ return new URL(str) // 2 åç®ã®ãã¼ã¹ } ããã§ã失æããã
{{#tags}}- {{label}}
{{/tags}}